From: hickert Date: Wed, 21 Apr 2010 15:09:33 +0000 (+0000) Subject: Fixed several problems with 'reset' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8cce23e36e3d468c534144f533caf2703bbbe65f;p=gosa.git Fixed several problems with 'reset' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17782 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index 71db1500b..e7ba343fd 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -947,9 +947,13 @@ class acl extends plugin if(count($list) == 5){ list($index, $type,$member,$permission,$filter)= $list; $filter = base64_decode($filter); - }else{ + }elseif(count($list) == 4){ $filter = ""; list($index, $type,$member,$permission)= $list; + }else{ + $permission = ""; + $filter = ""; + list($index, $type,$member)= $list; } $a= array( $index => array("type" => $type, @@ -1129,7 +1133,7 @@ class acl extends plugin $acl= $this->gosaAclEntry[$this->currentIndex]; $this->aclType= $acl['type']; $this->recipients= $acl['members']; - $this->aclContents= $acl['acl']; + $this->aclContents= (isset($acl['acl'])) ? $acl['acl'] :""; $this->aclFilter= $acl['filter']; }