fix array definition code
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user