Better type check of ACL var
This commit is contained in:
parent
ce873f40cc
commit
08b23c4042
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue