A free, self-hostable news aggregator…
Fix marking as read a label with SQLite (#3711)
Alexandre Alapetite247dfa6c1ba0
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.phpindex 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 != '') {