Update code/Model/Recipient/EmailRecipientCondition.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
This commit is contained in:
parent
e65b8dd518
commit
38e5446579
|
@ -100,7 +100,7 @@ class EmailRecipientCondition extends DataObject
|
||||||
case 'Includes':
|
case 'Includes':
|
||||||
$result = is_array($fieldValue)
|
$result = is_array($fieldValue)
|
||||||
? in_array($conditionValue, $fieldValue)
|
? in_array($conditionValue, $fieldValue)
|
||||||
: stripos($fieldValue, $conditionValue) !== false;
|
: stripos($fieldValue ?? '', $conditionValue) !== false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new LogicException("Unhandled rule {$this->ConditionOption}");
|
throw new LogicException("Unhandled rule {$this->ConditionOption}");
|
||||||
|
|
Loading…
Reference in New Issue