diff --git a/admin/editaccount.php b/admin/editaccount.php index 48a27f05b0..b58c968221 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -113,6 +113,8 @@ $phpgw->common->header(); $phpgw->common->navbar(); + $phpgw->db->query("select loginid from accounts where con='$con'"); + $phpgw->db->next_record(); $db_perms = $phpgw->accounts->read_apps($phpgw->db->f("loginid")); $phpgw->db->query("select * from accounts where con='$con'"); diff --git a/admin/viewaccount.php b/admin/viewaccount.php index 864c20682e..6964862186 100755 --- a/admin/viewaccount.php +++ b/admin/viewaccount.php @@ -18,6 +18,8 @@ if (! $con) Header("Location: " . $phpgw->link("accounts.php")); + $phpgw->db->query("select loginid from accounts where con='$con'"); + $phpgw->db->next_record(); $db_perms = $phpgw->accounts->read_apps($phpgw->db->f("loginid")); $phpgw->db->query("select * from accounts where con='$con'");