From 48693ed6f205e8d6f7aca5c7647ae4af18cff35a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Apr 2006 10:13:41 +0000 Subject: [PATCH] Remove FAI objectClasses if no FAIclass is assigned git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3162 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationStartup.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"){ -- 2.30.2