Merge pull request #329 from spekulatius/adding-space-before-casing

adding a space before casting into a different type
This commit is contained in:
Christopher Pitt 2015-09-11 07:31:31 +12:00
commit 99e771f942

View File

@ -47,7 +47,7 @@ class UserDefinedForm_EmailRecipientCondition extends DataObject {
default: default:
$matches = is_array($fieldValue) $matches = is_array($fieldValue)
? in_array($this->ConditionValue, $fieldValue) ? in_array($this->ConditionValue, $fieldValue)
: $this->ConditionValue === (string)$fieldValue; : $this->ConditionValue === (string) $fieldValue;
return ($this->ConditionOption === 'Equals') === (bool)$matches; return ($this->ConditionOption === 'Equals') === (bool)$matches;
} }
} }