summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Pagination.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 76754046b..562a2d3eb 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -380,8 +380,6 @@ class CI_Pagination {
// 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 @@ class CI_Pagination {
// 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);