1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-11-11 04:42:23 +03:00

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

@@ -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'] = '';
}