Commit 792de8c5 authored by Dries's avatar Dries

- Fixed problem with account.module listings.

  (Reported by Remco.)
parent 28e6fdfb
......@@ -229,11 +229,11 @@ function account_query($type = "") {
}
function account_admin() {
global $op, $edit, $id, $mod, $keys, $order, $name, $type;
global $op, $edit, $id, $mod, $keys, $order, $name, $query;
print "<SMALL><A HREF=\"admin.php?mod=account&op=access\">access control</A> | <A HREF=\"admin.php?mod=account&op=listing\">account listings</A> | <A HREF=\"admin.php?mod=account&op=search\">search account</A> | <A HREF=\"admin.php?mod=account\">overview</A> | <A HREF=\"admin.php?mod=account&op=help\">help</A></SMALL><HR>";
$type = $type ? $type : 0;
$query = $query ? $query : 0;
$name = $name ? $name : $edit[name];
switch ($op) {
......@@ -254,7 +254,7 @@ function account_admin() {
break;
case "Delete account":
print status(account_delete($name));
print account_overview(account_query($type));
print account_overview(account_query($query));
break;
case "Edit account":
case "edit":
......@@ -279,7 +279,7 @@ function account_admin() {
print account_view($name);
break;
default:
print account_overview(account_query($type));
print account_overview(account_query($query));
}
}
......
Markdown is supported
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