diff options
| author | 2012-12-08 02:53:26 +0100 | |
|---|---|---|
| committer | 2012-12-08 02:53:26 +0100 | |
| commit | acc0c6f424fb7d4a4ab8ac52995ac746b0c1c1a5 (patch) | |
| tree | 48903525855fed653460fea88ed4ca58d35ed6c6 /app/controllers/indexController.php | |
| parent | a4173dd2e979773f9a65b51c20ef0708ba1474d5 (diff) | |
correction bug pagination si page courante incorrecte
Diffstat (limited to 'app/controllers/indexController.php')
| -rwxr-xr-x | app/controllers/indexController.php | 9 |
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 (); |
