From b3f0c8f7edf2b615f8ea3540dfc928ec81ab8e5b Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Mon, 25 Apr 2011 15:07:55 +0200 Subject: [PATCH] Formatted code and removed duplicate output of checked=checked --- server_privileges.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/server_privileges.php b/server_privileges.php index 1e6aa5a9a..ba2d3b4ed 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -586,7 +586,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE) . ' ' . "\n" . '

' . __(' Note: MySQL privilege names are expressed in English ') . '

' . "\n"; - // Output the Global privilege tables + // Output the Global privilege tables with checkboxes foreach($privTable as $i => $table) { echo '
' . "\n" . ' ' . __($privTable_names[$i]) . '' . "\n"; @@ -594,14 +594,12 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE) { echo '
' . "\n" . ' ' . "\n" - . ' ' . "\n" + . ' name="' . $priv[0] . '_priv" id="checkbox_' . $priv[0] . '_priv"' + . ' value="Y" title="' . $priv[2] . '"' + . ((!empty($GLOBALS['checkall']) || $row[$priv[0] . '_priv'] == 'Y') ? ' checked="checked"' : '') + . '/>' . "\n" + . ' ' . "\n" . '
' . "\n"; } echo '
' . "\n";