diff options
author | Andrey Andreev <narf@devilix.net> | 2015-07-26 22:12:16 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-07-26 22:12:16 +0200 |
commit | d91ed26ebb47bebb86a2021d7f2b57488be72abb (patch) | |
tree | 2cf320f4c6118e4de8484cfc0897d8fb254d1985 /system | |
parent | 5ea646a9a1012168fde1a6a2b970d4168e2c11fc (diff) |
Fix #4000
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Pagination.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index 76437f4a5..5b3aa01f4 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -353,7 +353,8 @@ class CI_Pagination { */ public function initialize(array $params = array()) { - if (isset($params['attributes']) && is_array($params['attributes'])) + isset($params['attributes']) OR $params['attributes'] = array(); + if (is_array($params['attributes'])) { $this->_parse_attributes($params['attributes']); unset($params['attributes']); |