mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-09 08:57:40 -04:00
page < 0 is impossible now
This commit is contained in:
@@ -371,7 +371,10 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
$logs = FreshRSS_LogDAO::lines(); //TODO: ask only the necessary lines
|
||||
|
||||
//gestion pagination
|
||||
$page = Minz_Request::param('page', 1);
|
||||
$page = intval(Minz_Request::param('page', 1));
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
}
|
||||
$this->view->logsPaginator = new Minz_Paginator($logs);
|
||||
$this->view->logsPaginator->_nbItemsPerPage(50);
|
||||
$this->view->logsPaginator->_currentPage($page);
|
||||
|
||||
Reference in New Issue
Block a user