* Change the set recPerPage order.
This commit is contained in:
@@ -178,7 +178,7 @@ class basePager
|
||||
/* Set the cookie name. */
|
||||
$this->pageCookie = 'pager' . ucfirst($this->app->getModuleName()) . ucfirst($this->app->getMethodName());
|
||||
|
||||
if(isset($_COOKIE[$this->pageCookie])) $recPerPage = $_COOKIE[$this->pageCookie];
|
||||
if(!$recPerPage && isset($_COOKIE[$this->pageCookie])) $recPerPage = $_COOKIE[$this->pageCookie];
|
||||
$this->recPerPage = ($recPerPage > 0) ? $recPerPage : PAGER::DEFAULT_REC_PER_PAGE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user