handle case if no valid client identifier is given
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
3775b14c4c
commit
1a8965b488
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ class ClientMapper extends Mapper {
|
|||
$result = $qb->execute();
|
||||
$row = $result->fetch();
|
||||
$result->closeCursor();
|
||||
|
||||
if (!is_array($row)) {
|
||||
$row = [];
|
||||
}
|
||||
|
||||
return Client::fromRow($row);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue