summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2017-11-26 19:41:27 +0100
committerAhmad Anbar <aanbar@gmail.com>2017-11-26 19:41:27 +0100
commit41afe03031cfda835d5e5ebee51281dc0e58e66b (patch)
tree3d2761422b3d04cac2323ddbaf3296518a8b3456
parente1a9410d1a14c20e034d9fbab2da72e0fdf49f17 (diff)
Fix issue #4454
-rw-r--r--system/libraries/Pagination.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index f26f8a4ed..1a96e575d 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -352,9 +352,8 @@ class CI_Pagination {
* @return CI_Pagination
*/
public function initialize(array $params = array())
- {
- isset($params['attributes']) OR $params['attributes'] = array();
- if (is_array($params['attributes']))
+ {
+ if (isset($params['attributes']) && is_array($params['attributes']))
{
$this->_parse_attributes($params['attributes']);
unset($params['attributes']);