Code

Updated workstation startup, fixed errors if there is no FAI configuration at all.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 13:09:13 +0000 (13:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 13:09:13 +0000 (13:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11123 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index fc29543b07e6e34eb6ff4f57dfb75e50cec0f1b2..ca7405270ecbbead9a054a22f426ce4fe903b446 100644 (file)
@@ -1122,6 +1122,13 @@ class workstartup extends plugin
       }
     }
 
+    /* Ensure that our selection is valid, else we get several PHP warnings 
+        if there is no FAI configuration at all.
+     */
+    if(!isset($this->cache['SERVERS'][$this->FAIdebianMirror])){
+      $this->cache['SERVERS'][$this->FAIdebianMirror][''] ='';
+    }
+
     /* Build up arrays, without checks */
     if(!$first_call){