Code

Remove FAI objectClasses if no FAIclass is assigned
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Apr 2006 10:13:41 +0000 (10:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Apr 2006 10:13:41 +0000 (10:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3162 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationStartup.inc

index 0fa75c4b40585c28e3736cd37376fb8d0f56bbb5..cd2ba4feb0a9cc5ceb0cabf7517a75b6ce0ae421 100644 (file)
@@ -890,8 +890,9 @@ class workstartup extends plugin
     if($this->FAIdebianMirror == "none"){
       $this->FAIdebianMirror = "";
     }
-    
-    if((count($this->attrs['FAIclass'])==0)&&(empty($this->FAIdebianMirror))){
+   
+    /* Remove FAI objects if no FAI class is selected */ 
+    if(count($this->FAIclass)==0){
       $tmp = array();
       foreach($this->attrs['objectClass'] as $class){
         if($class != "FAIobject"){