From: cajus Date: Fri, 1 Jun 2007 12:31:27 +0000 (+0000) Subject: Updated to be more robust X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b2ca5cc512f4f5b07be66ef4e6aa9ff0f6a8325b;p=gosa.git Updated to be more robust git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 3547ccee3..455b3b588 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -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 */