diff --git a/api/src/Etemplate/Widget/Taglist.php b/api/src/Etemplate/Widget/Taglist.php index abef17b0a6..596de5454f 100644 --- a/api/src/Etemplate/Widget/Taglist.php +++ b/api/src/Etemplate/Widget/Taglist.php @@ -189,7 +189,7 @@ class Taglist extends Etemplate\Widget } else { - if(str_contains($this->type, 'email') && !preg_match(Url::EMAIL_PREG, $val) && + if($val !== '' && str_contains($this->type, 'email') && !preg_match(Url::EMAIL_PREG, $val) && !($this->attrs['domainOptional'] && preg_match(Taglist::EMAIL_PREG_NO_DOMAIN, $val)) && // Allow merge placeholders. Might be a better way to do this though. !preg_match('/{{.+}}|\$\$.+\$\$/', $val)