fix double call on icServer->getACL

This commit is contained in:
Klaus Leithoff 2014-04-22 14:15:58 +00:00
parent 58ea850bf3
commit 0771c4ff08

View File

@ -415,16 +415,13 @@ class mail_acl
*/ */
function getACL ($mailbox) function getACL ($mailbox)
{ {
if(($acl =$this->mail_bo->icServer->getACL($mailbox))) try
{ {
try $acl = $this->mail_bo->icServer->getACL($mailbox);
{ return $acl;
$acl = $this->mail_bo->icServer->getACL($mailbox); } catch (Exception $e) {
return $acl; error_log(__METHOD__. "Could not get ACL rights from folder " . $mailbox . " because of " .$e->getMessage());
} catch (Exception $e) { return false;
error_log(__METHOD__. "Could not get ACL rights from folder " . $mailbox . " because of " .$e->getMessage());
return false;
}
} }
} }
} }