Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 20, 2024
1 parent 1cf7ea7 commit 35daa9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/my-calendar-locations.php
Original file line number Diff line number Diff line change
Expand Up @@ -1839,10 +1839,9 @@ function mc_location_class( $event_or_location, $prefix ) {
$name = 'no-location';
if ( property_exists( $event_or_location, 'location' ) ) {
$location = $event_or_location->location;
print_r( $location );
if ( $location ) {
$name = $location->location_label;
$id = $location->location_id;
$name = $location->location_label;
$id = $location->location_id;
}
} elseif ( property_exists( $event_or_location, 'location_label' ) ) {
$name = $event_or_location->location_label;
Expand Down

0 comments on commit 35daa9a

Please sign in to comment.