From 5aaa78a46e53bacee2f8a05a3c53247e889f60d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 16 Sep 2008 21:02:02 +0000 Subject: [PATCH] Fix for admin-edit link in header --- inc/databases.php | 2 +- inc/modules/admin/what-admins_edit.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index f60e32fa9c..fe5a76bd22 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "345"); +define('CURR_SVN_REVISION', "346"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index 2a7c9728ae..e4aaee886f 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -51,8 +51,9 @@ if (!empty($_GET['admin'])) { // Secure ID number $aid = bigintval($_GET['admin']); $_POST['edit'] = "1"; - $_POST['sel'][$aid] = array("1"); + $_POST['sel'][$aid] = "1"; } + if ((isset($_POST['edit'])) && (SELECTION_COUNT($_POST['sel']) > 0)) { // Edit account(s) ADMINS_EDIT_ADMIN_ACCOUNTS($_POST); -- 2.39.5