[REF][PHP8.1] Don't pass null to strtoupper in getDynamicCharacters
authorBradley Taylor <hello@brad-taylor.co.uk>
Sun, 11 Jun 2023 08:01:19 +0000 (09:01 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sun, 11 Jun 2023 08:01:19 +0000 (09:01 +0100)
CRM/Utils/PagerAToZ.php

index 2faefae7860064dce16e3f167862cf54621fb2f5..ea08a189d3cd62e580ae46db691518fbf9175950 100644 (file)
@@ -97,7 +97,7 @@ class CRM_Utils_PagerAToZ {
 
     $dynamicAlphabets = [];
     while ($result->fetch()) {
-      $dynamicAlphabets[] = strtoupper($result->sort_name);
+      $dynamicAlphabets[] = strtoupper($result->sort_name ?? '');
     }
     return $dynamicAlphabets;
   }