From d7d449dcfd51775d90c693767890557d191a6dbd Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 3 Jun 2024 10:03:30 -0700 Subject: [PATCH] fix: error about null value to `stripos()` Had an error happen complaining about null being sent to first argument of `stripos()` --- lib/Application/Schedule/ScheduleResourceFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Application/Schedule/ScheduleResourceFilter.php b/lib/Application/Schedule/ScheduleResourceFilter.php index 5c03516fe..8a67d9bf1 100644 --- a/lib/Application/Schedule/ScheduleResourceFilter.php +++ b/lib/Application/Schedule/ScheduleResourceFilter.php @@ -186,7 +186,7 @@ private function AttributeValueMatches($attribute, $value) } if ($value->Type() == CustomAttributeTypes::SINGLE_LINE_TEXTBOX || $value->Type() == CustomAttributeTypes::MULTI_LINE_TEXTBOX) { - return strripos($value->Value(), $attribute->Value) !== false; + return strripos($value->Value() ?? "", $attribute->Value) !== false; } elseif (is_numeric($value->Value())) { return floatval($value->Value()) == $attribute->Value; } else {