diff --git a/htdocs/user/group/list.php b/htdocs/user/group/list.php index edc3d0a2f24..d7134eb28cd 100644 --- a/htdocs/user/group/list.php +++ b/htdocs/user/group/list.php @@ -377,7 +377,7 @@ if ($conf->main_checkbox_left_column) { print_liste_field_titre("Group", $_SERVER["PHP_SELF"], "g.nom", '', $param, "", $sortfield, $sortorder); $totalarray['nbfield']++; //multicompany -if (isModEnabled('multicompany') && !getDolGlobalString('MULTICOMPANY_TRANSVERSE_MODE') && $conf->entity == 1) { +if (isModEnabled('multicompany') && is_object($mc) && !getDolGlobalString('MULTICOMPANY_TRANSVERSE_MODE') && $conf->entity == 1) { print_liste_field_titre("Entity", $_SERVER["PHP_SELF"], "g.entity", '', $param, '', $sortfield, $sortorder, 'center '); $totalarray['nbfield']++; } @@ -448,7 +448,6 @@ while ($i < $imaxinloop) { } } else { // Show line of result - $j = 0; print '