getTree: initialize variable before it's used
authorJon Goldberg <jon@megaphonetech.com>
Wed, 4 Oct 2023 15:54:29 +0000 (11:54 -0400)
committerJon Goldberg <jon@megaphonetech.com>
Wed, 4 Oct 2023 15:54:29 +0000 (11:54 -0400)
CRM/Core/BAO/CustomGroup.php

index b9b82c590053b7e136472347283a6bd5386751de..7877b1adeab16344f8d951809578ae870ab67413 100644 (file)
@@ -550,6 +550,7 @@ ORDER BY civicrm_custom_group.weight,
       $cacheString .= "_Inline";
     }
 
+    $multipleFieldGroups = [];
     $cacheKey = "CRM_Core_DAO_CustomGroup_Query " . md5($cacheString);
     $multipleFieldGroupCacheKey = "CRM_Core_DAO_CustomGroup_QueryMultipleFields " . md5($cacheString);
     $cache = CRM_Utils_Cache::singleton();