From d224381f93e11fc975efaee09bca6c67dcf4c045 Mon Sep 17 00:00:00 2001 From: rurban Date: Wed, 23 Jun 2010 13:39:18 +0000 Subject: [PATCH] protect from slice warnings git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7558 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PageList.php b/lib/PageList.php index 8db35d0c6..3c21e8b77 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1605,9 +1605,9 @@ class PageList { } } - if (!empty($this->_options['limit']) and $this->_options['slice']) + if (!empty($this->_options['limit']) and !empty($this->_options['slice'])) { list($offset, $count) = $this->limit($this->_options['limit']); - else { + } else { $offset = 0; $count = count($this->_pages); } // need a recursive switch here for the azhead and cols grouping. -- 2.45.0