mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
If url widget is not required, accept a blank
This commit is contained in:
parent
609b512f3c
commit
d744f3e5c5
@ -51,7 +51,7 @@ class etemplate_widget_url extends etemplate_widget
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!'),'');
|
||||
return;
|
||||
}
|
||||
if (!isset($this->attrs['preg']))
|
||||
elseif ((string)$value != '' && !isset($this->attrs['preg']))
|
||||
{
|
||||
switch($this->type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user