Commit 9381c7df authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(dashboard) Fix dashboard crash when posix plugin is missing

It may be better to add support for ogroups later.

issue #5940
Showing with 5 additions and 0 deletions
+5 -0
...@@ -125,6 +125,11 @@ class dashboardUsers extends simplePlugin ...@@ -125,6 +125,11 @@ class dashboardUsers extends simplePlugin
$nb_groups = 0; $nb_groups = 0;
$nb_mail_groups = 0; $nb_mail_groups = 0;
$nb_samba_groups = 0; $nb_samba_groups = 0;
} catch (NonExistingObjectTypeException $e) {
/* Posix plugin is not installed */
$nb_groups = 0;
$nb_mail_groups = 0;
$nb_samba_groups = 0;
} }
return array( return array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment