summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorEric Roberts <eric@cryode.com>2013-01-29 01:01:01 +0100
committerEric Roberts <eric@cryode.com>2013-01-29 01:01:01 +0100
commitba67f3bb595817115a15f6c3249e41e7c85f2ce4 (patch)
treed30fad2587f6e0096be0f0d6ba05913cb1f5f96f /system/libraries
parent9668d1d56d39187aa26f058495ca666e3544cbe2 (diff)
Move $get assignment to if/else.
Signed-off-by: Eric Roberts <eric@cryode.com>
Diffstat (limited to 'system/libraries')
-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);