summaryrefslogtreecommitdiff
path: root/app/Models/EntryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-21 22:32:29 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-21 22:32:29 +0100
commit7313f9f3a306d16fac78ab587e3055482398ceac (patch)
treee5585b47cd758328deda4401a98d19afa90ec2ab /app/Models/EntryDAO.php
parent7afd9e398a505aebf540ab32c3c6a29bb94a9514 (diff)
Bug "mark all as read" when using DESC and pagination and no scroll
https://github.com/marienfressinaud/FreshRSS/issues/431#issuecomment-35774488
Diffstat (limited to 'app/Models/EntryDAO.php')
-rw-r--r--app/Models/EntryDAO.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index aaf4dcf6a..f41d6c560 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -65,7 +65,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
}
}
public function markReadEntries ($idMax = 0, $favorites = false) {
- if ($idMax === 0) {
+ if ($idMax == 0) {
$sql = 'UPDATE `' . $this->prefix . 'entry` e INNER JOIN `' . $this->prefix . 'feed` f ON e.id_feed = f.id '
. 'SET e.is_read = 1, f.cache_nbUnreads=0 '
. 'WHERE e.is_read = 0 AND ';
@@ -127,7 +127,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
}
}
public function markReadCat ($id, $idMax = 0) {
- if ($idMax === 0) {
+ if ($idMax == 0) {
$sql = 'UPDATE `' . $this->prefix . 'entry` e INNER JOIN `' . $this->prefix . 'feed` f ON e.id_feed = f.id '
. 'SET e.is_read = 1, f.cache_nbUnreads=0 '
. 'WHERE f.category = ? AND e.is_read = 0';
@@ -182,7 +182,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
}
}
public function markReadFeed ($id, $idMax = 0) {
- if ($idMax === 0) {
+ if ($idMax == 0) {
$sql = 'UPDATE `' . $this->prefix . 'entry` e INNER JOIN `' . $this->prefix . 'feed` f ON e.id_feed = f.id '
. 'SET e.is_read = 1, f.cache_nbUnreads=0 '
. 'WHERE f.id=? AND e.is_read = 0';