- Fixed problem with account.module listings.

(Reported by Remco.)
3-00
Dries Buytaert 2001-06-07 16:28:16 +00:00
parent 28e6fdfbf3
commit 792de8c537
1 changed files with 4 additions and 4 deletions

View File

@ -229,11 +229,11 @@ function account_query($type = "") {
} }
function account_admin() { 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>"; 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]; $name = $name ? $name : $edit[name];
switch ($op) { switch ($op) {
@ -254,7 +254,7 @@ function account_admin() {
break; break;
case "Delete account": case "Delete account":
print status(account_delete($name)); print status(account_delete($name));
print account_overview(account_query($type)); print account_overview(account_query($query));
break; break;
case "Edit account": case "Edit account":
case "edit": case "edit":
@ -279,7 +279,7 @@ function account_admin() {
print account_view($name); print account_view($name);
break; break;
default: default:
print account_overview(account_query($type)); print account_overview(account_query($query));
} }
} }