Skip to content

Commit

Permalink
Check for connections
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Oct 10, 2024
1 parent 9c8b82f commit b3d9220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transport/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function getStationBoard(StationBoardQuery $query)

$journeys = [];

if ($result->connections) {
if (isset($result->connections) && $result->connections) {
foreach ($result->connections as $connection) {
$journey = Entity\Schedule\StationBoardJourney::createFromJson($connection, null);
$journey->stop->station = $station;
Expand Down

0 comments on commit b3d9220

Please sign in to comment.