Skip to content

Commit

Permalink
Merge pull request #8229 from hregis/7.0_bug3
Browse files Browse the repository at this point in the history
FIX Parameter must be an array or an object that implements Countable
  • Loading branch information
eldy committed Feb 25, 2018
2 parents 7dfedbf + 3859b5a commit 898f2cf
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 898f2cf

Please sign in to comment.