From 6ffb3e21285d7aafe5c9245b6019316e28b746fe Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Tue, 27 Sep 2022 19:57:04 +0100 Subject: [PATCH] Use array_key_exists to avoid warning on report GroupBy.tpl template --- templates/CRM/Report/Form/Tabs/GroupBy.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Report/Form/Tabs/GroupBy.tpl b/templates/CRM/Report/Form/Tabs/GroupBy.tpl index c53b7f579ff1..b72c13c9f419 100644 --- a/templates/CRM/Report/Form/Tabs/GroupBy.tpl +++ b/templates/CRM/Report/Form/Tabs/GroupBy.tpl @@ -15,7 +15,7 @@ {assign var="count" value=`$count+1`} {$form.group_bys[$gbElem].html} - {if $form.group_bys_freq[$gbElem].html}:
+ {if array_key_exists($gbElem, $form.group_bys_freq)}:
  {$form.group_bys_freq[$gbElem].label} {$form.group_bys_freq[$gbElem].html} {/if}