bug #2809930 [setup] Notice: Undefined variable: k in setup/index.php

This commit is contained in:
Herman van Rink
2009-06-21 22:49:57 +00:00
parent a7f741391d
commit 9c11d553d4
2 changed files with 2 additions and 1 deletions

View File

@@ -286,10 +286,10 @@ class ConfigFile
if ($this->getServerCount() > 0) {
$ret .= "/* Servers configuration */$crlf\$i = 0;" . $crlf . $crlf;
foreach ($c['Servers'] as $id => $server) {
$k = preg_replace('/[^A-Za-z0-9_]/', '_', $k);
$ret .= '/* Server: ' . strtr($this->getServerName($id), '*/', '-') . " [$id] */" . $crlf
. '$i++;' . $crlf;
foreach ($server as $k => $v) {
$k = preg_replace('/[^A-Za-z0-9_]/', '_', $k);
$ret .= "\$cfg['Servers'][\$i]['$k'] = "
. var_export($v, true) . ';' . $crlf;
}