If url widget is not required, accept a blank

This commit is contained in:
Nathan Gray 2013-02-04 13:22:37 +00:00
parent 609b512f3c
commit d744f3e5c5

View File

@ -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)
{