diff --git a/lib/Db/StackMapper.php b/lib/Db/StackMapper.php index f1c77d7d7..e3210ccb6 100644 --- a/lib/Db/StackMapper.php +++ b/lib/Db/StackMapper.php @@ -62,9 +62,10 @@ WHERE c.id = ? SQL; try { return $this->findEntity($sql, [$cardId]); - } catch (IMapperException $e) { - return null; + } catch (MultipleObjectsReturnedException|DoesNotExistException $e) { } + + return null; }