From: hickert Date: Fri, 30 May 2008 13:09:13 +0000 (+0000) Subject: Updated workstation startup, fixed errors if there is no FAI configuration at all. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b51a8183b5ad550a6c9713871c9996453ed0da0;p=gosa.git Updated workstation startup, fixed errors if there is no FAI configuration at all. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11123 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index fc29543b0..ca7405270 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -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){