From: hickert Date: Fri, 28 Apr 2006 10:13:41 +0000 (+0000) Subject: Remove FAI objectClasses if no FAIclass is assigned X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=48693ed6f205e8d6f7aca5c7647ae4af18cff35a;p=gosa.git Remove FAI objectClasses if no FAIclass is assigned git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3162 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 0fa75c4b4..cd2ba4feb 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -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"){