diff options
| author | 2013-04-11 22:13:34 +0200 | |
|---|---|---|
| committer | 2013-04-11 22:13:34 +0200 | |
| commit | d5b761b5126aa087064eaa1d4c7ab1e9fe117980 (patch) | |
| tree | 3a57f2676a478e67cec52db722596b9d78932011 /app/models/Entry.php | |
| parent | cb3c97b811e6d820b8bf4d86861cfcae3b267c20 (diff) | |
Correction bug listage des articles
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 4 |
1 files 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']; } |
