bug #1353435, selecting users to drop is broken
This commit is contained in:
@@ -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), '', 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), '', 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']) {
|
||||
|
Reference in New Issue
Block a user