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':
|
||||
$result = is_array($fieldValue)
|
||||
? in_array($conditionValue, $fieldValue)
|
||||
: stripos($fieldValue, $conditionValue) !== false;
|
||||
: stripos($fieldValue ?? '', $conditionValue) !== false;
|
||||
break;
|
||||
default:
|
||||
throw new LogicException("Unhandled rule {$this->ConditionOption}");
|
||||
|
|
Loading…
Reference in New Issue