From: <ru...@us...> - 2010-06-23 13:39:27
|
Revision: 7558 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7558&view=rev Author: rurban Date: 2010-06-23 13:39:18 +0000 (Wed, 23 Jun 2010) Log Message: ----------- protect from slice warnings Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2010-06-23 13:13:40 UTC (rev 7557) +++ trunk/lib/PageList.php 2010-06-23 13:39:18 UTC (rev 7558) @@ -1605,9 +1605,9 @@ } } - 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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |