diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 01:07:19 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 01:09:48 +0200 |
commit | 9e36c33104213f425941d4788a06889871a590c9 (patch) | |
tree | a265dca2132187c79c50ecff9d83af814fe3af1d /lib | |
parent | 512373fadf64c4ea982e12d921684b298f112314 (diff) | |
download | nextcloud-server-9e36c33104213f425941d4788a06889871a590c9.tar.gz nextcloud-server-9e36c33104213f425941d4788a06889871a590c9.zip |
use fetch method instead of fetchRow because fetchRow is only an owncloud internal alias that exists purely for compability
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/appframework/db/mapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/appframework/db/mapper.php b/lib/public/appframework/db/mapper.php index 21ccb686221..a23149e796b 100644 --- a/lib/public/appframework/db/mapper.php +++ b/lib/public/appframework/db/mapper.php @@ -225,12 +225,12 @@ abstract class Mapper { */ protected function findOneQuery($sql, array $params=array(), $limit=null, $offset=null){ $result = $this->execute($sql, $params, $limit, $offset); - $row = $result->fetchRow(); + $row = $result->fetch(); if($row === false || $row === null){ throw new DoesNotExistException('No matching entry found'); } - $row2 = $result->fetchRow(); + $row2 = $result->fetch(); //MDB2 returns null, PDO and doctrine false when no row is available if( ! ($row2 === false || $row2 === null )) { throw new MultipleObjectsReturnedException('More than one result'); @@ -264,7 +264,7 @@ abstract class Mapper { $entities = array(); - while($row = $result->fetchRow()){ + while($row = $result->fetch()){ $entities[] = $this->mapRowToEntity($row); } |