fix: undefined variable in AttachmentMapper.php

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-05-09 19:25:41 +01:00
parent 19b4d0ac21
commit a8db7a90f1

View File

@@ -73,7 +73,7 @@ class AttachmentMapper extends DeckMapper implements IPermissionMapper {
$row2 = $cursor->fetch(); $row2 = $cursor->fetch();
$cursor->closeCursor(); $cursor->closeCursor();
if ($row2 !== false) { if ($row2 !== false) {
throw new MultipleObjectsReturnedException('Did not expect more than one result when executing' . $query); throw new MultipleObjectsReturnedException('Did not expect more than one result when executing' . $qb);
} }
return $this->mapRowToEntity($row); return $this->mapRowToEntity($row);