Code

Updated to be more robust
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Jun 2007 12:31:27 +0000 (12:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Jun 2007 12:31:27 +0000 (12:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6518 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 3547ccee30c0b85aedba4a84cb223a8bcea3b557..455b3b588d730bc71e70766ae273c7a9956c37e2 100644 (file)
@@ -1026,7 +1026,11 @@ class environment extends plugin
     /* Prepare HotPlug devices */
     $this->attrs['gotoHotplugDevice'] = array();
     foreach($this->gotoHotplugDevices as $name => $device){
-      $this->attrs['gotoHotplugDevice'][] = $device['name']."|".$device['description']."|".$device['id']."|".$device['produkt']."|".$device['vendor'];
+      $tmp= $device['name']."|".$device['description']."|".$device['id'];
+      if (isset($device['produkt']) && isset($device['vendor'])){
+        $tmp.= "|".$device['produkt']."|".$device['vendor'];
+      }
+      $this->attrs['gotoHotplugDevice'][]= $tmp;
     }
 
     /* Prepare LogonScripts */