diff options
Diffstat (limited to 'db/postgres/itemmapper.php')
-rw-r--r-- | db/postgres/itemmapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/postgres/itemmapper.php b/db/postgres/itemmapper.php index 8a305bcb4..593a0719a 100644 --- a/db/postgres/itemmapper.php +++ b/db/postgres/itemmapper.php @@ -39,7 +39,7 @@ class ItemMapper extends \OCA\News\Db\ItemMapper { 'WHERE NOT ((`items`.`status` & ?) > 0) ' . 'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' . 'HAVING COUNT(*) > ?'; - $params = array($status, $threshold); + $params = [$status, $threshold]; $result = $this->execute($sql, $params); while($row = $result->fetch()) { @@ -48,7 +48,7 @@ class ItemMapper extends \OCA\News\Db\ItemMapper { $limit = $size - $threshold; if($limit > 0) { - $params = array($status, $row['feed_id'], $limit); + $params = [$status, $row['feed_id'], $limit]; $sql = 'DELETE FROM `*PREFIX*news_items` ' . 'WHERE `id` IN (' . |