fix array definition code

This commit is contained in:
Crack
2010-07-31 21:54:38 +02:00
parent 23d74c9996
commit e76b4f8721

View File

@@ -92,7 +92,7 @@ class ConfigGenerator
$ret = ''; $ret = '';
if (self::_isZeroBasedArray($var_value)) { if (self::_isZeroBasedArray($var_value)) {
$ret = "\$cfg['$var_name'] = " . self::_exportZeroBasedArray($var_value, $crlf) $ret = "\$cfg['$var_name'] = " . self::_exportZeroBasedArray($var_value, $crlf)
. ');' . $crlf; . ';' . $crlf;
} else { } else {
// string keys: $cfg[key][subkey] = value // string keys: $cfg[key][subkey] = value
foreach ($var_value as $k => $v) { foreach ($var_value as $k => $v) {