aboutsummaryrefslogtreecommitdiff
path: root/app/Models/EntryDAOSQLite.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
-rw-r--r--app/Models/EntryDAOSQLite.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php
index 82d7c099c..f0b9a318b 100644
--- a/app/Models/EntryDAOSQLite.php
+++ b/app/Models/EntryDAOSQLite.php
@@ -253,11 +253,11 @@ DROP TABLE IF EXISTS `tmp`;
Minz_Log::debug('Calling markReadTag(0) is deprecated!');
}
- $sql = 'UPDATE `_entry` e '
- . 'SET e.is_read = ? '
- . 'WHERE e.is_read <> ? AND e.id <= ? AND '
- . 'e.id IN (SELECT et.id_entry FROM `_entrytag` et '
- . ($id == '' ? '' : 'WHERE et.id = ?')
+ $sql = 'UPDATE `_entry` '
+ . 'SET is_read = ? '
+ . 'WHERE is_read <> ? AND id <= ? AND '
+ . 'id IN (SELECT et.id_entry FROM `_entrytag` et '
+ . ($id == '' ? '' : 'WHERE et.id_tag = ?')
. ')';
$values = array($is_read ? 1 : 0, $is_read ? 1 : 0, $idMax);
if ($id != '') {