summaryrefslogtreecommitdiff
path: root/app/models/Entry.php
diff options
context:
space:
mode:
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'];
}