From e0846b454fec0be80590f342b431d38fd20f7ad0 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 14 Mar 2014 20:36:44 +0100 Subject: [PATCH] Return null if shared address book is not found --- lib/backend/shared.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/backend/shared.php b/lib/backend/shared.php index 6f208795..02a373aa 100644 --- a/lib/backend/shared.php +++ b/lib/backend/shared.php @@ -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; }