From: cajus Date: Mon, 11 Sep 2006 07:22:48 +0000 (+0000) Subject: Added role config X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7c420e9381972fb5d18e9721dcc61d4888759e01;p=gosa.git Added role config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_hotplugDialog.inc b/plugins/personal/environment/class_hotplugDialog.inc index dc61ecf84..c0a7be3d5 100644 --- a/plugins/personal/environment/class_hotplugDialog.inc +++ b/plugins/personal/environment/class_hotplugDialog.inc @@ -123,13 +123,13 @@ class hotplugDialog extends plugin $message[]=_("Invalid character in description. Please specify a valid description."); } - if(preg_match("/[\|]/i",$this->HOT_id)){ + if(empty($this->HOT_id) || preg_match("/[\|]/i",$this->HOT_id)){ $message[]=_("Please specify a valid id."); } - if(!$this->is_2byteHex($this->HOT_vendor)){ + if(empty($this->HOT_vendor) || !$this->is_2byteHex($this->HOT_vendor)){ $message[]=_("Please specify a valid vendor id. (2 byte hex like '0xFFFF')"); } - if(!$this->is_2byteHex($this->HOT_produkt)){ + if(empty($this->HOT_produkt) || !$this->is_2byteHex($this->HOT_produkt)){ $message[]=_("Please specify a valid product id. (2 byte hex like '0xFFFF')"); } diff --git a/plugins/personal/environment/hotplugDialogNew.tpl b/plugins/personal/environment/hotplugDialogNew.tpl index 927395d01..8ae162286 100644 --- a/plugins/personal/environment/hotplugDialogNew.tpl +++ b/plugins/personal/environment/hotplugDialogNew.tpl @@ -25,7 +25,7 @@ - - -
+ {$must} @@ -33,14 +33,14 @@  
+ {$must}
+ {$must}