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:
parent
6de5415f22
commit
e0846b454f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user