From: Steve Sutton Date: Mon, 13 Nov 2017 14:16:02 +0000 (-0500) Subject: Test for member in template first X-Git-Tag: v1.0.0^2~286 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ded092744ebcefc782c873966315e3123e2f5a2c;p=WP-Plugins%2Fglm-member-db-registrations.git Test for member in template first Before trying to use member --- diff --git a/views/front/registrations/list.html b/views/front/registrations/list.html index 6abbb49..67d99e6 100644 --- a/views/front/registrations/list.html +++ b/views/front/registrations/list.html @@ -1,4 +1,4 @@ -{include file='front/registrations/header.html'} +{include file='front/registrations/header.html'} {if $reg_bulletin}
@@ -41,7 +41,7 @@ {if $event.locations.city.name}{$event.locations.city.name}{/if}{if $event.locations.state.value}, {$event.locations.state.value} {/if} {if $event.locations.zip} {$event.locations.zip} {/if} {if $event.locations.phone} {apply_filters('glm_associate_phone_filter', $event.locations.phone)} {/if} - {elseif $event.use_member_location.value} + {elseif isset($event.member) && $event.use_member_location.value} {if $event.member.member} {$event.member.member}
{/if} {if $event.member.addr1} {$event.member.addr1}
{/if} {if $event.member.city}{$event.member.city}{/if}{if $event.member.state.value}, {$event.member.state.value}{/if}