Jacek Kowalski
2019-06-18 2bac868d6e5421e78b4aeaead798cec9e6d3041f
Add '??' prefix when using GTFS vehicle ID
1 files modified
2 ■■■ changed files
lib/mapper.php 2 ●●● patch | view | raw | blame | history
lib/mapper.php
@@ -135,7 +135,7 @@
                $num = $gtfsTrip['num'];
                if(!is_array($data) || !isset($data['num'])) {
                    $data = [
                        'num' => $num ?: $gtfsTrip['id'],
                        'num' => $num ?: '??'.$gtfsTrip['id'],
                        'low' => NULL,
                    ];
                } elseif($data['num'] != $num) {