avoid warning with php 7.2
This commit is contained in:
parent
ab77051317
commit
ca6a624112
@ -44,7 +44,7 @@ if (empty($objectclass) || empty($uploaddir))
|
|||||||
|
|
||||||
// Mass actions. Controls on number of lines checked.
|
// Mass actions. Controls on number of lines checked.
|
||||||
$maxformassaction=(empty($conf->global->MAIN_LIMIT_FOR_MASS_ACTIONS)?1000:$conf->global->MAIN_LIMIT_FOR_MASS_ACTIONS);
|
$maxformassaction=(empty($conf->global->MAIN_LIMIT_FOR_MASS_ACTIONS)?1000:$conf->global->MAIN_LIMIT_FOR_MASS_ACTIONS);
|
||||||
if (! empty($massaction) && count($toselect) < 1)
|
if (! empty($massaction) && is_array($toselect) && count($toselect) < 1)
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
setEventMessages($langs->trans("NoRecordSelected"), null, "warnings");
|
setEventMessages($langs->trans("NoRecordSelected"), null, "warnings");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user