LSformRule :: email: fix handling domain parameter if its an array

This commit is contained in:
Benjamin Renard 2020-05-13 16:02:17 +02:00
parent 42f4e8a860
commit da9c0e344b

View file

@ -40,7 +40,7 @@ class LSformRule_email extends LSformRule {
public static function validate($value,$options=array(),$formElement) {
return checkEmail(
$value,
LSconfig :: get('params.domain', NULL, 'string', $options),
LSconfig :: get('params.domain', null, null, $options),
LSconfig :: get('params.checkDomain', true, 'bool', $options)
);
}