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:
authorMarc Delisle <marc@infomarc.info>2005-11-10 23:50:33 +0300
committerMarc Delisle <marc@infomarc.info>2005-11-10 23:50:33 +0300
commite9199acb6523db97a5867275a1458c14dcd6ac0f (patch)
tree5356a10861d35aa2f21e0fd8536803f5202a3d91 /server_privileges.php
parent001062a994831253a0bb6b9e7b545edf3ee3a4db (diff)
bug #1353435, selecting users to drop is broken
Diffstat (limited to 'server_privileges.php')
-rw-r--r--server_privileges.php6
1 files changed, 4 insertions, 2 deletions
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']) {