Skip to content

Commit

Permalink
FOSFA-283: Correct webform check
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Apr 15, 2024
1 parent 23aecdb commit 781d9fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function evaluateCaseCustomFieldsTokens(TokenValueEvent $e) {
* Detects the token activity is triggered by webform.
*/
private static function isWebform() {
return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_');
return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_') !== FALSE;
}

}

0 comments on commit 781d9fb

Please sign in to comment.