Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog1
-rw-r--r--server_privileges.php6
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b4179bab1..d2efbf75fb 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ $Source$
2005-11-10 Marc Delisle <lem9@users.sourceforge.net>
* libraries/session.inc.php, Documentation.html: bug #1352479, warn
if PHP does not support session
+ * server_privileges.php: bug #1353435, selecting users to drop is broken
2005-11-10 Michal Čihař <michal@cihar.com>
* scripts/create-release.sh: = is correct for comparsion in shell.
diff --git a/server_privileges.php b/server_privileges.php
index 091720e99c..c0fc4fd5d3 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -1420,12 +1420,14 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) {
echo ' </thead>' . "\n";
echo ' <tbody>' . "\n";
$odd_row = true;
+ $index_checkbox = -1;
foreach ( $db_rights as $user ) {
+ $index_checkbox++;
ksort( $user );
foreach ( $user as $host ) {
echo ' <tr class="' . ( $odd_row ? 'odd' : 'even' ) . '">' . "\n"
- . ' <td><input type="checkbox" name="selected_usr[]" id="checkbox_sel_users_' . $i . '" value="' . str_replace( chr(27), '&#27;', htmlentities($host['User'] . $user_host_separator . $host['Host'] ) ) . '"' . (empty($GLOBALS['checkall']) ? '' : ' checked="checked"') . ' /></td>' . "\n"
- . ' <td><label for="checkbox_sel_users_' . $i . '">' . (empty($host['User']) ? '<span style="color: #FF0000">' . $GLOBALS['strAny'] . '</span>' : htmlspecialchars($host['User'])) . '</label></td>' . "\n"
+ . ' <td><input type="checkbox" name="selected_usr[]" id="checkbox_sel_users_' . $index_checkbox . '" value="' . str_replace( chr(27), '&#27;', htmlentities($host['User'] . $user_host_separator . $host['Host'] ) ) . '"' . (empty($GLOBALS['checkall']) ? '' : ' checked="checked"') . ' /></td>' . "\n"
+ . ' <td><label for="checkbox_sel_users_' . $index_checkbox . '">' . (empty($host['User']) ? '<span style="color: #FF0000">' . $GLOBALS['strAny'] . '</span>' : htmlspecialchars($host['User'])) . '</label></td>' . "\n"
. ' <td>' . htmlspecialchars($host['Host']) . '</td>' . "\n";
echo ' <td>';
switch ($host['Password']) {