From: hickert Date: Mon, 26 Nov 2007 07:25:06 +0000 (+0000) Subject: Fixed FAI startup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24438ffa49a39fd9f635d6f549c1dde725eb6c7f;p=gosa.git Fixed FAI startup -If there are classes assigned to a workstation that doesn't exist anymore, several PHP warning are displayed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7880 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index ef10f4abb..dc07cb02a 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -865,9 +865,11 @@ class workstartup extends plugin $i ++ ; $desc = ""; - foreach($this->FAIclassInfo[$class] as $types ){ - if(isset($types['desc'][0])){ - $desc.= $types['desc'][0]." "; + if(isset($this->FAIclassInfo[$class])){ + foreach($this->FAIclassInfo[$class] as $types ){ + if(isset($types['desc'][0])){ + $desc.= $types['desc'][0]." "; + } } } if(!empty($desc)){