From 24438ffa49a39fd9f635d6f549c1dde725eb6c7f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Nov 2007 07:25:06 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_workstationStartup.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)){ -- 2.30.2