mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #329 from spekulatius/adding-space-before-casing
adding a space before casting into a different type
This commit is contained in:
commit
99e771f942
@ -47,7 +47,7 @@ class UserDefinedForm_EmailRecipientCondition extends DataObject {
|
||||
default:
|
||||
$matches = is_array($fieldValue)
|
||||
? in_array($this->ConditionValue, $fieldValue)
|
||||
: $this->ConditionValue === (string)$fieldValue;
|
||||
: $this->ConditionValue === (string) $fieldValue;
|
||||
return ($this->ConditionOption === 'Equals') === (bool)$matches;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user