1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Return null if shared address book is not found

This commit is contained in:
Thomas Tanghus 2014-03-14 20:36:44 +01:00
parent 6de5415f22
commit e0846b454f

View File

@ -88,6 +88,11 @@ class Shared extends Database {
// Not sure if I'm doing it wrongly, or if its supposed to return
// the info in an array?
$addressBook = (isset($addressBook['permissions']) ? $addressBook : $addressBook[0]);
if(!isset($addressBook['permissions'])) {
return null;
}
$addressBook['backend'] = $this->name;
return $addressBook;
}