From 9b51a8183b5ad550a6c9713871c9996453ed0da0 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 May 2008 13:09:13 +0000 Subject: [PATCH] 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 --- .../goto/admin/systems/goto/class_workstationStartup.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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){ -- 2.30.2