backwards compatibility

This commit is contained in:
Alexander M. Turek
2003-02-25 22:01:54 +00:00
parent 8718ab8275
commit f6e5ce3089
2 changed files with 7 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
* Includes compatibility code for older config.inc.php3 revisions
* if necessary
*/
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 161) {
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 162) {
include('./libraries/config_import.lib.php3');
}

View File

@@ -108,13 +108,13 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
}
if (!isset($cfg['Servers'][$i]['column_info'])) {
$cfg['Servers'][$i]['column_info'] = '';
if (isset($cfg['Servers'][$i]['column_comments'])) {
$cfg['Servers'][$i]['column_info'] = $cfg['Servers'][$i]['column_comments'];
unset($cfg['Servers'][$i]['column_comments']);
} else {
$cfg['Servers'][$i]['column_info'] = '';
}
}
if ($cfg['Servers'][$i]['column_info'] == '' && isset($cfg['Servers'][$i]['column_comments']) && $cfg['Servers'][$i]['column_comments'] != '') {
$cfg['Servers'][$i]['column_info'] = $cfg['Servers'][$i]['column_comments'];
}
if (!isset($cfg['Servers'][$i]['pdf_pages'])) {
$cfg['Servers'][$i]['pdf_pages'] = '';