Fix warning
This commit is contained in:
parent
934a849463
commit
3beb1e2d18
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue