From 90b681e6f4bd2354388cba4cbf1b5f2b02f2ec45 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 15 Jun 2007 07:27:12 +0000 Subject: [PATCH] Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6598 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_terminalGeneric.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index 4ddfcb20a..1526e213e 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -471,9 +471,10 @@ class termgeneric extends plugin /* Strip out 'default' values */ foreach (array("gotoTerminalPath", "gotoSwapServer", "gotoSyslogServer") as $val){ - - if ($this->attrs[$val] == "default"){ - $this->attrs[$val]= array(); + if(isset($this->attrs[$val])){ + if ($this->attrs[$val] == "default"){ + $this->attrs[$val]= array(); + } } } -- 2.30.2