From: cajus Date: Thu, 3 Apr 2008 13:37:10 +0000 (+0000) Subject: Fixed "remove" variables problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f4efd42e842c808944010dfe69fee8504ce16dde;p=gosa.git Fixed "remove" variables problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10150 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc index 1c819c096..a3ca17002 100644 --- a/gosa-plugins/fai/admin/fai/class_faiVariable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiVariable.inc @@ -214,7 +214,7 @@ class faiVariable extends plugin $tmp = array(); foreach($this->SubObjects as $key => $obj){ $acl = $ui->get_permissions($obj['dn'],"fai/faiVariableEntry"); - if(preg_match("/r/",$acl) || $obj['dn'] == "new"){ + if((preg_match("/r/",$acl) || $obj['dn'] == "new") && isset($ret[$key])){ $tmp[$key] = $ret[$key]; } }