Skip to content

Commit

Permalink
Cast as string
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Feb 21, 2020
1 parent 1aa7b1e commit 62161bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Form/Rule/EmailRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function test(\SimpleXMLElement $element, $value, $group = null, Registry
* This allows different components and contexts to use different lists.
* If value is incomplete, com_users.domains is used as fallback.
*/
$validDomains = (isset($element['validDomains']) && $element['validDomains'] !== 'false');
$validDomains = (string) $element['validDomains'] !== '' && (string) $element['validDomains'] !== 'false';

if ($validDomains && !$multiple)
{
Expand Down

0 comments on commit 62161bf

Please sign in to comment.