Skip to content

Commit

Permalink
Fix server privileges Action colspan (usergroups)
Browse files Browse the repository at this point in the history
Signed-off-by: J.M <[email protected]>
  • Loading branch information
mynetx committed Dec 27, 2013
1 parent f16f978 commit 62cf900
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/server_privileges.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,10 @@ function PMA_getUsersOverview($result, $db_rights, $pmaThemeImage, $text_dir)
$db_rights[$row['User']][$row['Host']] = $row;
}
@$GLOBALS['dbi']->freeResult($result);
$user_group_count = 0;
if ($GLOBALS['cfgRelation']['menuswork']) {
$user_group_count = PMA_getUserGroupCount();
}

$html_output
= '<form name="usersForm" id="usersForm" action="server_privileges.php" '
Expand All @@ -2904,7 +2908,8 @@ function PMA_getUsersOverview($result, $db_rights, $pmaThemeImage, $text_dir)
$html_output .= '<th>' . __('User group') . '</th>' . "\n";
}
$html_output .= '<th>' . __('Grant') . '</th>' . "\n"
. '<th colspan="3">' . __('Action') . '</th>' . "\n"
. '<th colspan="' . ($user_group_count > 0 ? '3' : '2') . '">'
. __('Action') . '</th>' . "\n"
. '</tr>' . "\n"
. '</thead>' . "\n";

Expand Down

0 comments on commit 62cf900

Please sign in to comment.