summaryrefslogtreecommitdiffstats
path: root/db/postgres
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:21:01 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:21:01 +0200
commit2dd8827768379ef8a96611b7b702464da8fd7349 (patch)
treed633e1a9dbb34e34eae5088c9db0765d85cb1b80 /db/postgres
parent874c469e0241962e15927de5aba758a7206849ba (diff)
replace fetchRow with fetch to honour pdostatement
Diffstat (limited to 'db/postgres')
-rw-r--r--db/postgres/itemmapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/postgres/itemmapper.php b/db/postgres/itemmapper.php
index af746ecc1..235461c38 100644
--- a/db/postgres/itemmapper.php
+++ b/db/postgres/itemmapper.php
@@ -44,7 +44,7 @@ class ItemMapper extends \OCA\News\Db\ItemMapper {
$params = array($status, $threshold);
$result = $this->execute($sql, $params);
- while($row = $result->fetchRow()) {
+ while($row = $result->fetch()) {
$size = (int) $row['size'];
$limit = $size - $threshold;