From 7c420e9381972fb5d18e9721dcc61d4888759e01 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 11 Sep 2006 07:22:48 +0000 Subject: [PATCH] Added role config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_hotplugDialog.inc | 6 +++--- plugins/personal/environment/hotplugDialogNew.tpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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} -- 2.30.2