From d5b761b5126aa087064eaa1d4c7ab1e9fe117980 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 11 Apr 2013 22:13:34 +0200 Subject: Correction bug listage des articles --- app/models/Entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/Entry.php b/app/models/Entry.php index 770b27eed..b9b6d30db 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -403,7 +403,7 @@ class EntryDAO extends Model_pdo { $deb = ($this->currentPage () - 1) * $this->nbItemsPerPage; $fin = $this->nbItemsPerPage; - $sql = 'SELECT * FROM entry e' + $sql = 'SELECT e.* FROM entry e' . ' INNER JOIN feed f ON e.id_feed = f.id' . $where . ' ORDER BY date' . $order . ' LIMIT ' . $deb . ', ' . $fin; @@ -563,7 +563,7 @@ class EntryDAO extends Model_pdo { $stm = $this->bd->prepare ($sql); $stm->execute (); $res = $stm->fetchAll (PDO::FETCH_ASSOC); - Log::record ('not read : ' . $res[0]['count'], Log::NOTICE); + return $res[0]['count']; } -- cgit v1.2.3