Jacek Kowalski
2019-06-17 e3e91e07770ff533fbe1493095a32a9e19e3161b
Make sure that the vehicle "low" attribute is always an integer
1 files modified
2 ■■■ changed files
lib/vehicle_types.php 2 ●●● patch | view | raw | blame | history
lib/vehicle_types.php
@@ -7,7 +7,7 @@
            return [
                'num' => $line[2] . str_pad($id, 3, '0', STR_PAD_LEFT),
                'type' => $line[3],
                'low' => isset($line[4]) ? $line[4] : $defaultLow,
                'low' => (int)(isset($line[4]) ? $line[4] : $defaultLow),
            ];
        }
    }