Skip to content

Commit

Permalink
Check for station name in /stationboard
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Oct 10, 2024
1 parent f940d2d commit 0737e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transport/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function __construct()
$station = new Station();
$station->name = $request->get('station') ?: $request->get('id');

if ($station instanceof Station) {
if ($station->name) {
$query = new StationBoardQuery($station, $date);
if ($transportations) {
$query->transportations = (array) $transportations;
Expand Down

0 comments on commit 0737e97

Please sign in to comment.