Merge pull request #8229 from hregis/7.0_bug3
FIX Parameter must be an array or an object that implements Countable
This commit is contained in:
commit
898f2cf0ca
@ -46,7 +46,7 @@ if (! empty($massaction) && count($toselect) < 1)
|
||||
$error++;
|
||||
setEventMessages($langs->trans("NoRecordSelected"), null, "warnings");
|
||||
}
|
||||
if (! $error && count($toselect) > $maxformassaction)
|
||||
if (! $error && is_array($toselect) && count($toselect) > $maxformassaction)
|
||||
{
|
||||
setEventMessages($langs->trans('TooManyRecordForMassAction',$maxformassaction), null, 'errors');
|
||||
$error++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user