Skip to content

Commit

Permalink
fix: maintain php 7.4 backward compatibility (use strpos instead of s…
Browse files Browse the repository at this point in the history
…tr_contains)
  • Loading branch information
semteacher committed Jun 6, 2024
1 parent ed8292e commit d181042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/bo_availability/conditions/customform.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public static function append_customform_elements($answer) {
!empty($answerjson->condition_customform)
) {
foreach ($answerjson->condition_customform as $key => $value) {
if (str_contains($key, 'customform_')) {
if (strpos($key, 'customform_') !== false) {
$answer->$key = $value;
}
}
Expand Down

0 comments on commit d181042

Please sign in to comment.