Another fix against bug #582890.
This commit is contained in:
@@ -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
|
||||
|
@@ -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'] = '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user