From: Steve Sutton Date: Tue, 25 Apr 2017 18:37:33 +0000 (-0400) Subject: Add the city to icalfeed output X-Git-Tag: v1.6.37^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=1eef533d26d36b697d08008d01cd1397a9c51174;p=WP-Plugins%2Fglm-member-db-events.git Add the city to icalfeed output Adding city to the LOCATION part of ical feed. --- diff --git a/models/front/events/icalFeed.php b/models/front/events/icalFeed.php index ba2dae9..f3dc668 100644 --- a/models/front/events/icalFeed.php +++ b/models/front/events/icalFeed.php @@ -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'] ) {