Skip to content
Snippets Groups Projects
Commit 2537a9d3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Error if module multicompany was removed without being disabled.

parent c2f0d84e
No related branches found
No related tags found
No related merge requests found
...@@ -909,7 +909,7 @@ if (($action == 'create') || ($action == 'adduserldap')) ...@@ -909,7 +909,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
// Multicompany // Multicompany
if (! empty($conf->multicompany->enabled)) 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 "<tr>".'<td valign="top">'.$langs->trans("Entity").'</td>';
print "<td>".$mc->select_entities($conf->entity); print "<td>".$mc->select_entities($conf->entity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment