diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:21:01 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:21:01 +0200 |
commit | 2dd8827768379ef8a96611b7b702464da8fd7349 (patch) | |
tree | d633e1a9dbb34e34eae5088c9db0765d85cb1b80 /db/itemmapper.php | |
parent | 874c469e0241962e15927de5aba758a7206849ba (diff) |
replace fetchRow with fetch to honour pdostatement
Diffstat (limited to 'db/itemmapper.php')
-rw-r--r-- | db/itemmapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php index c1a341aaa..b223a8aaf 100644 --- a/db/itemmapper.php +++ b/db/itemmapper.php @@ -80,7 +80,7 @@ class ItemMapper extends Mapper implements IMapper { $params = array($userId); - $result = $this->execute($sql, $params)->fetchRow(); + $result = $this->execute($sql, $params)->fetch(); return (int) $result['size']; } @@ -230,7 +230,7 @@ class ItemMapper extends Mapper implements IMapper { $params = array($status, $threshold); $result = $this->execute($sql, $params); - while($row = $result->fetchRow()) { + while($row = $result->fetch()) { $size = (int) $row['size']; $limit = $size - $threshold; |