summaryrefslogtreecommitdiffstats
path: root/lib/Db
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-01-26 17:23:52 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit785aaf6929412d4143c9f41d0ef60a820bff16a1 (patch)
treeeee127c9a9423ba2764181f17146c0701e19f227 /lib/Db
parentedee520fc8e4c172024fec217eab74baea75eb53 (diff)
🐛 sharedCount: fix sql statement bug `1` => 1
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Db')
-rw-r--r--lib/Db/ItemMapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php
index 92993bdba..8b5f42815 100644
--- a/lib/Db/ItemMapper.php
+++ b/lib/Db/ItemMapper.php
@@ -550,7 +550,7 @@ class ItemMapper extends NewsMapper
{
$sql = 'SELECT COUNT(*) AS size FROM `*PREFIX*news_items` `items` ' .
'WHERE `items`.`shared_with` = ? ' .
- 'AND `items`.`unread` = `1`';
+ 'AND `items`.`unread` = 1';
$params = [$userId];