aboutsummaryrefslogtreecommitdiff
path: root/app/models/Entry.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-11 22:13:34 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-11 22:13:34 +0200
commitd5b761b5126aa087064eaa1d4c7ab1e9fe117980 (patch)
tree3a57f2676a478e67cec52db722596b9d78932011 /app/models/Entry.php
parentcb3c97b811e6d820b8bf4d86861cfcae3b267c20 (diff)
Correction bug listage des articles
Diffstat (limited to 'app/models/Entry.php')
-rwxr-xr-xapp/models/Entry.php4
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'];
}