patch #1249371, correct calculation of colspan; also $dbstats should contain 0 or 1, not the colspan
This commit is contained in:
@@ -334,9 +334,9 @@ if (count($statistics) > 0) {
|
||||
. ' </tr>' . "\n";
|
||||
}
|
||||
if ($is_superuser || $cfg['AllowUserDropDatabase']) {
|
||||
$common_url_query = PMA_generate_common_url() . '&sort_by=' . $sort_by . '&sort_order=' . $sort_order . '&dbstats=' . (empty($dbstats) ? '10' : '3');
|
||||
$common_url_query = PMA_generate_common_url() . '&sort_by=' . $sort_by . '&sort_order=' . $sort_order . '&dbstats=' . (empty($dbstats) ? '0' : '1');
|
||||
echo ' <tr>' . "\n"
|
||||
. ' <td colspan="' . (empty($dbstats) ? '10' : '3') . '">' . "\n"
|
||||
. ' <td colspan="' . (!empty($dbstats) ? '10' : '3') . '">' . "\n"
|
||||
. ' <img src="' . $pmaThemeImage . 'arrow_' . $text_dir . '.png" border="0" width="38" height="22" alt="' . $strWithChecked . '" />' . "\n"
|
||||
. ' <a href="./server_databases.php?' . $common_url_query . '&checkall=1" onclick="setCheckboxes(\'dbStatsForm\', true); return false;">' . "\n"
|
||||
. ' ' . $strCheckAll
|
||||
|
Reference in New Issue
Block a user