1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2024-12-25 01:43:55 +01:00

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)
);
}