summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-26 22:12:16 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-26 22:12:16 +0200
commitd91ed26ebb47bebb86a2021d7f2b57488be72abb (patch)
tree2cf320f4c6118e4de8484cfc0897d8fb254d1985 /system
parent5ea646a9a1012168fde1a6a2b970d4168e2c11fc (diff)
Fix #4000
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Pagination.php3
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']);