aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/indexController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/indexController.php')
-rwxr-xr-xapp/controllers/indexController.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php
index b06b6c711..57d37e0f5 100755
--- a/app/controllers/indexController.php
+++ b/app/controllers/indexController.php
@@ -56,7 +56,14 @@ class indexController extends ActionController {
$entries = $entryDAO->listEntries ($mode, $order);
}
- $this->view->entryPaginator = $entryDAO->getPaginator ($entries);
+ try {
+ $this->view->entryPaginator = $entryDAO->getPaginator ($entries);
+ } catch (CurrentPagePaginationException $e) {
+ Error::error (
+ 404,
+ array ('error' => array ('La page que vous cherchez n\'existe pas'))
+ );
+ }
$this->view->cat_aside = $catDAO->listCategories ();
$this->view->nb_favorites = $entryDAO->countFavorites ();