more flexible <select> declaration

fix array export in ConfigFile
This commit is contained in:
Crack
2010-07-03 13:45:48 +02:00
parent b13dee72f3
commit 49c2562eae
4 changed files with 11 additions and 8 deletions

View File

@@ -512,7 +512,7 @@ class ConfigFile
// string keys: $cfg[key][subkey] = value
foreach ($var_value as $k => $v) {
$k = preg_replace('/[^A-Za-z0-9_]/', '_', $k);
$ret = "\$cfg['$var_name']['$k'] = " . var_export($v, true) . ';' . $crlf;
$ret .= "\$cfg['$var_name']['$k'] = " . var_export($v, true) . ';' . $crlf;
}
}
return $ret;