From ff02918d448cbe5eb84a6bf98f5a4641c9b1deda Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 9 Nov 2003 09:31:02 +0000 Subject: [PATCH] updated to changed getquotas() function --- lam/templates/profedit/profilegroup.php | 4 +++- lam/templates/profedit/profileuser.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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