Code

Fixed "remove" variables problem
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Apr 2008 13:37:10 +0000 (13:37 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Apr 2008 13:37:10 +0000 (13:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10150 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiVariable.inc

index 1c819c09641bd1b0bc31347de38548201ae4dcbd..a3ca17002fc1dee5e50efc4a21bbe5b18f49ab42 100644 (file)
@@ -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];
       } 
     }