diff options
| author | 2016-08-31 21:47:12 +0200 | |
|---|---|---|
| committer | 2016-08-31 21:47:12 +0200 | |
| commit | f66be86e41d89214688a28243b412ffa43ce500d (patch) | |
| tree | f3e22b817d936a076d8868b4586c86c0002982e9 /app/Models/FeedDAOSQLite.php | |
| parent | 0f1bc956d4f301e61618cff2dd5bfcac1532067f (diff) | |
Quoted upper-cases instead of string replace
Diffstat (limited to 'app/Models/FeedDAOSQLite.php')
| -rw-r--r-- | app/Models/FeedDAOSQLite.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/FeedDAOSQLite.php b/app/Models/FeedDAOSQLite.php index 7599fda53..440ae74da 100644 --- a/app/Models/FeedDAOSQLite.php +++ b/app/Models/FeedDAOSQLite.php @@ -4,8 +4,8 @@ class FreshRSS_FeedDAOSQLite extends FreshRSS_FeedDAO { public function updateCachedValues() { //For one single feed, call updateLastUpdate($id) $sql = 'UPDATE `' . $this->prefix . 'feed` ' - . 'SET cache_nbEntries=(SELECT COUNT(e1.id) FROM `' . $this->prefix . 'entry` e1 WHERE e1.id_feed=`' . $this->prefix . 'feed`.id),' - . 'cache_nbUnreads=(SELECT COUNT(e2.id) FROM `' . $this->prefix . 'entry` e2 WHERE e2.id_feed=`' . $this->prefix . 'feed`.id AND e2.is_read=0)'; + . 'SET `cache_nbEntries`=(SELECT COUNT(e1.id) FROM `' . $this->prefix . 'entry` e1 WHERE e1.id_feed=`' . $this->prefix . 'feed`.id),' + . '`cache_nbUnreads`=(SELECT COUNT(e2.id) FROM `' . $this->prefix . 'entry` e2 WHERE e2.id_feed=`' . $this->prefix . 'feed`.id AND e2.is_read=0)'; $stm = $this->bd->prepare($sql); if ($stm && $stm->execute()) { return $stm->rowCount(); |
