From 42f5b96640a2fe6986849f96228a80e294cf353e Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 17 Jun 2019 15:57:54 +0000 Subject: [PATCH] Do not output null if no vehicle number is present in GTFS --- lib/mapper.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/mapper.php b/lib/mapper.php index 65987a4..3eb7912 100644 --- a/lib/mapper.php +++ b/lib/mapper.php @@ -135,7 +135,7 @@ $num = $gtfsTrip['num']; if(!is_array($data) || !isset($data['num'])) { $data = [ - 'num' => $num, + 'num' => $num ?: '', 'low' => 2, ]; } elseif($data['num'] != $num) { -- Gitblit v1.9.1