Code

Fixed FAI startup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 07:25:06 +0000 (07:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 07:25:06 +0000 (07:25 +0000)
-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

index ef10f4abb94e902ecf537c7496f2c44f216963e0..dc07cb02a08b83be452a8d513f8c77ba557d0453 100644 (file)
@@ -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)){