Better type check of ACL var

This commit is contained in:
Thomas Bruederli 2011-07-27 16:46:12 +02:00
parent ce873f40cc
commit 08b23c4042

View file

@ -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;