Move $get assignment to if/else.
Signed-off-by: Eric Roberts <eric@cryode.com>
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 7675404..562a2d3 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -380,8 +380,6 @@
// Keep any existing query string items.
// Note: Has nothing to do with any other query string option.
- $get = array();
-
if ($this->reuse_query_string === TRUE)
{
$get = $CI->input->get();
@@ -389,6 +387,10 @@
// Unset the controll, method, old-school routing options
unset($get['c'], $get['m'], $get[$this->query_string_segment]);
}
+ else
+ {
+ $get = array();
+ }
// Put together our base and first URLs.
$this->base_url = trim($this->base_url);