Make page/limit params work if either of those is hardcoded
This commit is contained in:
parent
eae4cd3b2a
commit
dbab546f0a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue