don't pass null to htmlspecialchars
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 30 Jan 2023 17:44:38 +0000 (12:44 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 30 Jan 2023 17:44:38 +0000 (12:44 -0500)
CRM/UF/Page/Group.php

index 7fa01478fc07a376f101da6475ebc10c13260b6f..2cf6c83c5095e778294d446325e382a7295ef554 100644 (file)
@@ -303,7 +303,7 @@ class CRM_UF_Page_Group extends CRM_Core_Page {
       $ufGroup[$id]['frontend_title'] = $value['frontend_title'];
       $ufGroup[$id]['created_id'] = $value['created_id'];
       $ufGroup[$id]['created_by'] = CRM_Contact_BAO_Contact::displayName($value['created_id']);
-      $ufGroup[$id]['description'] = $value['description'];
+      $ufGroup[$id]['description'] = $value['description'] ?? '';
       $ufGroup[$id]['is_active'] = $value['is_active'];
       $ufGroup[$id]['group_type'] = $value['group_type'];
       $ufGroup[$id]['is_reserved'] = $value['is_reserved'];