Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: fix count by null in TransferVehicleController (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored May 28, 2024
1 parent 040db4c commit f6bfce8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit f6bfce8

Please sign in to comment.