diff --git a/lib/Transport/Application.php b/lib/Transport/Application.php index 898684b..2b9770e 100644 --- a/lib/Transport/Application.php +++ b/lib/Transport/Application.php @@ -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;