Another fix against bug #582890.

This commit is contained in:
Alexander M. Turek
2002-09-11 08:17:42 +00:00
parent 2c2fc2b4f2
commit 1e923fbc25
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-09-11 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/config_import.lib.php3: Another fix against bug #582890.
2002-09-10: Robin Johnson <robbat2@users.sourceforge.net>
* libraries/common.lib.php3, main.php3:
- Final solution to bug #582890

View File

@@ -29,7 +29,7 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')){
}
if (isset($cfg['Servers'])) {
for ($i=1; (isset($cfg['Servers'][$i]['host']) && !empty($cfg['Servers'][$i]['host'])); $i++) {
for ($i=1; (!empty($cfg['Servers'][$i]['host']) || (isset($cfg['Servers'][$i]['connect_type']) && $cfg['Servers'][$i]['connect_type'] == 'socket')); $i++) {
if (!isset($cfg['Servers'][$i]['port'])) {
$cfg['Servers'][$i]['port'] = '';
}