Code

Fixed undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Jun 2007 07:27:12 +0000 (07:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Jun 2007 07:27:12 +0000 (07:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6598 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_terminalGeneric.inc

index 4ddfcb20ac2a7eeeb8e233096b054b38effc8c23..1526e213eb69a7f2ed2c5a44c4ef00b0a7c2b625 100644 (file)
@@ -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();
+        }
       }
     }