From 05d757404f3674c5c3c07abe7ac715ad59a63454 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Oct 2007 11:18:06 +0000 Subject: [PATCH] Fixed usb hotplug storage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7437 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_hotplugDialog.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/personal/environment/class_hotplugDialog.inc b/plugins/personal/environment/class_hotplugDialog.inc index da5ad0891..2e69647fb 100644 --- a/plugins/personal/environment/class_hotplugDialog.inc +++ b/plugins/personal/environment/class_hotplugDialog.inc @@ -15,7 +15,7 @@ class hotplugDialog extends plugin var $HOT_name = ""; var $HOT_description = ""; - var $HOT_id = ""; + var $HOT_id = "0x0000"; var $HOT_produkt = ""; var $HOT_vendor = ""; @@ -123,10 +123,8 @@ class hotplugDialog extends plugin $message[]=_("Invalid character in description. Please specify a valid description."); } - if((empty($this->HOT_vendor)) || (empty($this->HOT_produkt))){ - if(empty($this->HOT_id) || preg_match("/[\|\*]/i",$this->HOT_id)){ - $message[]=_("Please specify a valid iSerial."); - } + if(empty($this->HOT_id) || preg_match("/[\|\*]/i",$this->HOT_id)){ + $message[]=_("Please specify a valid iSerial."); } if(empty($this->HOT_vendor) || !$this->is_2byteHex($this->HOT_vendor)){ $message[]=_("Please specify a valid vendor ID. (2 byte hex like '0xFFFF')"); -- 2.30.2