summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-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']);