Skip to content

Commit

Permalink
CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 13, 2021
1 parent e456944 commit 5c58ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,13 +880,13 @@ function mc_generate_map( $event, $source = 'event', $multiple = false, $geoloca
if ( $api_key ) {
$locations = ( is_object( $event ) ) ? array( $event ) : $event;
if ( is_array( $locations ) ) {
$multiple = ( count( $locations ) > 1 ) ? true : false;
$multiple = ( count( $locations ) > 1 ) ? true : false;
foreach ( $locations as $location ) {
$id = rand();
$loc_id = $location->{$source . '_id'};
$source = ( 'event' === $source ) ? 'event' : 'location';
$category_icon = apply_filters( 'mc_map_icon', '//maps.google.com/mapfiles/marker_green.png', $location, $source );
$address = addslashes( mc_map_string( $location, $source ) );
$address = addslashes( mc_map_string( $location, $source ) );

if ( '0.000000' !== $location->{$source . '_longitude'} && '0.000000' !== $location->{$source . '_latitude'} ) {
$lat = $location->{$source . '_latitude'};
Expand Down

0 comments on commit 5c58ffe

Please sign in to comment.