diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
commit | 160a0dfebaeb21cc75d7166dfbac6d0ef1a51460 (patch) | |
tree | 28e2555c97462d60356ef933d5c71c5326649747 /db/postgres | |
parent | acc2df1251a1c1b9ec5ede13bdf46d516dc64b0d (diff) |
convert array() to []
Diffstat (limited to 'db/postgres')
-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 (' . |