diff --git a/module/Olcs/src/Controller/Licence/Vehicle/TransferVehicleController.php b/module/Olcs/src/Controller/Licence/Vehicle/TransferVehicleController.php index 60dfe8358..c5cce7d0f 100644 --- a/module/Olcs/src/Controller/Licence/Vehicle/TransferVehicleController.php +++ b/module/Olcs/src/Controller/Licence/Vehicle/TransferVehicleController.php @@ -107,8 +107,7 @@ public function postAction() $validationErrors = []; if (empty($selectedVehicles)) { $validationErrors[] = 'licence.vehicle.transfer.error.no-vehicle-selected'; - } - if (count($selectedVehicles) > static::VEHICLE_TRANSFER_LIMIT) { + } elseif (count($selectedVehicles) > static::VEHICLE_TRANSFER_LIMIT) { $validationErrors[] = 'licence.vehicle.transfer.error.too-many-vehicles-selected'; }