summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 59ee48d..9eb24f3 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -820,7 +820,7 @@ sub handle_request {
my @json_route = $self->json_route_diff( [ $result->route ],
[ $result->sched_route ] );
- if ( $apiver == 1 ) {
+ if ( $apiver eq '1' ) {
push(
@departures,
{
@@ -856,7 +856,7 @@ sub handle_request {
}
);
}
- elsif ( $apiver == 2 ) {
+ elsif ( $apiver eq '2' ) {
my ( $delay_arr, $delay_dep, $sched_arr, $sched_dep );
if ( $result->arrival ) {
$delay_arr = $result->arrival->subtract_datetime(