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"
- . ' ' . $priv[1]
- . ' ' . "\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"
+ . ' '
+ . $priv[1] . ' ' . "\n"
. '
' . "\n";
}
echo ' ' . "\n";