From: Eileen McNaughton Date: Tue, 22 Aug 2023 06:28:29 +0000 (+1200) Subject: Smarty-notice fix - use array_key_exists X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c8caf8e84d8d311f5bd92843315954b635b66176;p=civicrm-core.git Smarty-notice fix - use array_key_exists --- diff --git a/templates/CRM/Contact/Page/Inline/Address.tpl b/templates/CRM/Contact/Page/Inline/Address.tpl index 9c248f2b65..7c18e02018 100644 --- a/templates/CRM/Contact/Page/Inline/Address.tpl +++ b/templates/CRM/Contact/Page/Inline/Address.tpl @@ -36,7 +36,7 @@ {/if}
- {if !empty($sharedAddresses.$locationIndex.shared_address_display.name)} + {if array_key_exists($locationIndex, $sharedAddresses) && !empty($sharedAddresses.$locationIndex.shared_address_display.name)} {ts 1=$sharedAddresses.$locationIndex.shared_address_display.name}Address belongs to %1{/ts}
{/if} {$add.display|smarty:nodefaults|purify|nl2br}