From 08b23c404201ee342a91c37abe96f6d82cdd7eb4 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 27 Jul 2011 16:46:12 +0200 Subject: [PATCH] Better type check of ACL var --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 9b97b64d..70397ac2 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -128,7 +128,7 @@ class rcube_kolab_contacts extends rcube_addressbook } else { $acl = $this->storagefolder->getACL(); - if (is_array($acl)) { + if (!PEAR::isError($acl) && is_array($acl)) { $acl = $acl[$_SESSION['username']]; if (strpos($acl, 'i') !== false) $this->readonly = false;