Fix warning

This commit is contained in:
Laurent Destailleur 2024-05-09 12:43:16 +02:00
parent 934a849463
commit 3beb1e2d18

View file

@ -517,8 +517,8 @@ if ($resql) {
$massactionbutton = '';
$nbselected = is_array($toselect) ? count($toselect) : 0;
if ($massaction == 'set_default_account') {
$nbselected = is_array($toselect) ? count($toselect) : 0;
if ($nbselected <= 0) {
$langs->load("errors");
setEventMessages($langs->trans("ErrorSelectAtLeastOne"), null, 'warnings');