Make page/limit params work if either of those is hardcoded

This commit is contained in:
Johannes Meyer 2014-03-13 15:22:34 +01:00
parent eae4cd3b2a
commit dbab546f0a
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ abstract class BaseQuery implements Filterable
*/
public function paginate($limit = null, $page = null)
{
if ($page === null && $limit === null) {
if ($page === null || $limit === null) {
$request = \Zend_Controller_Front::getInstance()->getRequest();
if ($page === null) {