Update code/Model/Recipient/EmailRecipientCondition.php

Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
This commit is contained in:
Sukhwinder Singh 2024-03-18 11:20:37 +13:00 committed by GitHub
parent e65b8dd518
commit 38e5446579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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}");