Skip to content

Commit

Permalink
fix: fix count by null in TransferVehicleController (dvsa/olcs-se…
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored May 28, 2024
1 parent 01a2d43 commit 1488a55
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 1488a55

Please sign in to comment.