Skip to content

Commit

Permalink
Fix: Parameter must be an array or an object that implements Countable
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Feb 24, 2018
1 parent 03d9bf1 commit 3859b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/actions_massactions.inc.php
Expand Up @@ -46,7 +46,7 @@
$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++;
Expand Down

0 comments on commit 3859b5a

Please sign in to comment.