From b2ca5cc512f4f5b07be66ef4e6aa9ff0f6a8325b Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 1 Jun 2007 12:31:27 +0000 Subject: [PATCH] Updated to be more robust git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.30.2