From: Roland Häder Date: Tue, 16 Sep 2008 21:02:02 +0000 (+0000) Subject: Fix for admin-edit link in header X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5aaa78a46e53bacee2f8a05a3c53247e889f60d6;p=mailer.git Fix for admin-edit link in header --- 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);