diff --git a/app/models/Vehicle.php b/app/models/Vehicle.php index 13f214f..550adaa 100644 --- a/app/models/Vehicle.php +++ b/app/models/Vehicle.php @@ -35,7 +35,7 @@ class Vehicle { } public function getVehiclesByUser($user_id) { - $stmt = $this->db->prepare("SELECT id, name, registration_plate, fuel_type, note, created_at FROM vehicles WHERE user_id = ?"); + $stmt = $this->db->prepare("SELECT id, name, registration_plate, fuel_type, note, is_default, created_at FROM vehicles WHERE user_id = ?"); $stmt->bind_param("i", $user_id); $stmt->execute(); $result = $stmt->get_result(); diff --git a/app/views/vehicles/index.php b/app/views/vehicles/index.php index 6111b65..7a37767 100644 --- a/app/views/vehicles/index.php +++ b/app/views/vehicles/index.php @@ -14,18 +14,20 @@
= htmlspecialchars($vehicle['fuel_type']) ?>
= htmlspecialchars($vehicle['note'] ?? "") ?>
-