From: hickert Date: Mon, 1 Oct 2007 11:18:06 +0000 (+0000) Subject: Fixed usb hotplug storage X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=05d757404f3674c5c3c07abe7ac715ad59a63454;p=gosa.git Fixed usb hotplug storage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7437 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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')");