From e3e91e07770ff533fbe1493095a32a9e19e3161b Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 17 Jun 2019 16:02:12 +0000 Subject: [PATCH] Make sure that the vehicle "low" attribute is always an integer --- lib/vehicle_types.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/vehicle_types.php b/lib/vehicle_types.php index 70f2eef..0c7092a 100644 --- a/lib/vehicle_types.php +++ b/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), ]; } } -- Gitblit v1.9.1