diff --git a/lam/templates/profedit/profilegroup.php b/lam/templates/profedit/profilegroup.php index 824d1421..4c1b8547 100644 --- a/lam/templates/profedit/profilegroup.php +++ b/lam/templates/profedit/profilegroup.php @@ -42,7 +42,9 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) { // load quota list if ($_SESSION['config']->get_scriptPath()) { - $acct_q = getquotas("group"); + $tempacc = new account(); + $tempacc->type = "group"; + $acct_q = getquotas(array($tempacc)); } // print header diff --git a/lam/templates/profedit/profileuser.php b/lam/templates/profedit/profileuser.php index 3374cc30..35b67df6 100644 --- a/lam/templates/profedit/profileuser.php +++ b/lam/templates/profedit/profileuser.php @@ -42,7 +42,9 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) { // load quota list if ($_SESSION['config']->get_scriptPath()) { - $acct_q = getquotas("user"); + $tempacc = new account(); + $tempacc->type = "user"; + $acct_q = getquotas(array($tempacc)); } // print header