From c8caf8e84d8d311f5bd92843315954b635b66176 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 22 Aug 2023 18:28:29 +1200 Subject: [PATCH] Smarty-notice fix - use array_key_exists --- templates/CRM/Contact/Page/Inline/Address.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.25.1