Fix table footer when MySQL does not support collations (bug #1554885, patch #1557269, thanks to Isaac Bennetch - ibennetch).

This commit is contained in:
Michal Čihař
2006-09-14 10:21:18 +00:00
parent 75c0fa389a
commit 611f58ae54
2 changed files with 15 additions and 7 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-09-14 Michal Čihař <michal@cihar.com>
* db_details_structure.php: Fix table footer when MySQL does not support
collations (bug #1554885, patch #1557269, thanks to Isaac Bennetch -
ibennetch).
2006-09-12 Marc Delisle <lem9@users.sourceforge.net>
* libraries/config.default.php, libraries/export/sql.php:
bug #1556934, sql compatibility mode on export

View File

@@ -408,14 +408,17 @@ if (!($cfg['PropertiesNumColumns'] > 1)) {
echo ' <th align="center">' . "\n"
. ' <dfn title="'
. sprintf($strDefaultEngine, $default_engine) . '">' .$default_engine . '</th>' . "\n";
// we got a case where $db_collation was empty
echo ' <th align="center">' . "\n";
if (! empty($db_collation)) {
echo ' <dfn title="'
. PMA_getCollationDescr($db_collation) . ' (' . $strDefault . ')">' . $db_collation
. '</dfn>';
// Have to account for old MySQL with no collation (bug 1554885)
if (PMA_MYSQL_INT_VERSION >= 40100) {
// we got a case where $db_collation was empty
echo ' <th align="center">' . "\n";
if (! empty($db_collation)) {
echo ' <dfn title="'
. PMA_getCollationDescr($db_collation) . ' (' . $strDefault . ')">' . $db_collation
. '</dfn>';
}
echo '</th>';
}
echo '</th>';
}
if ($is_show_stats) {