Add the city to icalfeed output
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 25 Apr 2017 18:37:33 +0000 (14:37 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 25 Apr 2017 18:37:33 +0000 (14:37 -0400)
Adding city to the LOCATION part of ical feed.

models/front/events/icalFeed.php

index ba2dae9..f3dc668 100644 (file)
@@ -197,7 +197,7 @@ EOD;
                 if ( $event['locations']['address'] ) {
                     $output .= "{$event['locations']['address']}";
                 }
-                if ( $event['locations']['city'] ) {
+                if ( $event['locations']['city']['name'] ) {
                     $output .= "\,{$event['locations']['city']['name']}";
                 }
                 if ( $event['locations']['state']['value'] ) {