Going through list template and remove any template errors
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Nov 2017 14:19:45 +0000 (10:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Nov 2017 14:19:45 +0000 (10:19 -0400)
For undefined variables.

classes/data/dataRegEvent.php
views/front/registrations/list.html

index a045828..8ab8fac 100644 (file)
@@ -379,6 +379,9 @@ class GlmDataRegistrationsRegEvent extends GlmDataAbstract
                 if ( isset( $eventData['locations'] ) && $eventData['locations'] ) {
                     $result_data['locations'] = $eventData['locations'];
                 }
+                if ( isset( $eventData['other_ref_dest'] ) && $eventData['other_ref_dest'] ) {
+                    $result_data['other_ref_dest'] = $eventData['other_ref_dest'];
+                }
             }
 
         }
index 658ed51..6ea9e0d 100644 (file)
                     <strong> Location: </strong>
                 </div>
                 <div class="glm-columns glm-large-10 glm-small-12">
-                    {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)}
+                    {if !$event.use_member_location.value && isset($event.locations) && ($event.locations.name || $event.locations.address)}
                         {if $event.locations.name}{$event.locations.name}<br>{/if}
                         {if $event.locations.address} {$event.locations.address}<br> {/if}
                         {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 || $event.other_ref_dest}
+                    {elseif $event.use_member_location.value}
                         {if $event.member.member} {$event.member.member}<br> {/if}
                         {if $event.member.addr1} {$event.member.addr1}<br> {/if}
                         {if $event.member.city}{$event.member.city}{/if}{if $event.member.state.value}, {$event.member.state.value}{/if}