Skip to content

Commit

Permalink
v1.5.2 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren authored Aug 19, 2023
2 parents 9c1dbe6 + 0407b0a commit 698d2b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2
5 changes: 3 additions & 2 deletions src/pages/events/events.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ public static function get_events(string $query): array
foreach ($calendar as $event) {
// get location
$location_data = Arr::get($event, "location", array());
$location = Arr::get($location_data, "name", C::$events->default_location);
if(($address = Arr::get($location_data, "address")) !== null) {
$location = sprintf("%s (%s)", $location, $address);
$location = $address;
} else {
$location = Arr::get($location_data, "name", C::$events->default_location);
}

// build and event to the array
Expand Down

0 comments on commit 698d2b0

Please sign in to comment.