diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index c818f1170..5dd847f34 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -64,7 +64,7 @@ class indexController extends ActionController { $catDAO = new CategoryDAO (); $this->view->cat_aside = $catDAO->listCategories (); - $this->view->nb_favorites = $entryDAO->countFavorites (); + $this->view->nb_favorites = $entryDAO->countUnreadReadFavorites (); $this->view->nb_total = $entryDAO->count (); $this->view->currentName = ''; diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml index 1c1b5559c..e6eb974d2 100644 --- a/app/layout/aside_flux.phtml +++ b/app/layout/aside_flux.phtml @@ -22,9 +22,9 @@
  • - + - nb_favorites); ?> + nb_favorites['read'] + $this->nb_favorites['unread']); ?>