diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 70b8824c3..ad9a9a3ee 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -371,7 +371,7 @@ 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)); $this->view->logsPaginator = new Minz_Paginator($logs); $this->view->logsPaginator->_nbItemsPerPage(50); $this->view->logsPaginator->_currentPage($page); diff --git a/app/views/helpers/logs_pagination.phtml b/app/views/helpers/logs_pagination.phtml index d12b3f9d1..c7b9ca0ca 100755 --- a/app/views/helpers/logs_pagination.phtml +++ b/app/views/helpers/logs_pagination.phtml @@ -17,9 +17,14 @@ currentPage - 1; ?> + +