From d52d68389b6a1d4b06f4604b7c5b4fb3b8dbe124 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 28 Jul 2019 13:41:43 +1200 Subject: [PATCH] Fix php7.x warning on count Fixes a warning when php 7.2 tries to count on a null value --- CRM/Event/Form/ManageEvent/Registration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index 0c03c4f9f9..f7df5fc3ea 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -166,7 +166,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $defaults["additional_custom_post_id_multiple[$key]"] = $value; } } - $this->assign('profilePostMultipleAdd', CRM_Utils_Array::value('additional_custom_post', $defaults)); + $this->assign('profilePostMultipleAdd', CRM_Utils_Array::value('additional_custom_post', $defaults, [])); } } else { -- 2.25.1