Fix: Error if module multicompany was removed without being disabled.
This commit is contained in:
parent
c2f0d84e45
commit
2537a9d35f
@ -909,7 +909,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
||||
// Multicompany
|
||||
if (! empty($conf->multicompany->enabled))
|
||||
{
|
||||
if (empty($conf->multicompany->transverse_mode) && $conf->entity == 1 && $user->admin && ! $user->entity)
|
||||
if (empty($conf->multicompany->transverse_mode) && $conf->entity == 1 && $user->admin && ! $user->entity && is_object($mc))
|
||||
{
|
||||
print "<tr>".'<td valign="top">'.$langs->trans("Entity").'</td>';
|
||||
print "<td>".$mc->select_entities($conf->entity);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user