Bugfixing Config output for memcached_hosts[]
This commit is contained in:
parent
90e88d6c35
commit
d6dd74690d
|
@ -113,7 +113,7 @@ HELP;
|
||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
foreach ($value as $k => $v) {
|
foreach ($value as $k => $v) {
|
||||||
$this->out("{$cat}.{$key}[{$k}] => " . $v);
|
$this->out("{$cat}.{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->out("{$cat}.{$key} => " . $value);
|
$this->out("{$cat}.{$key} => " . $value);
|
||||||
|
@ -130,7 +130,7 @@ HELP;
|
||||||
foreach ($catVal as $key => $value) {
|
foreach ($catVal as $key => $value) {
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
foreach ($value as $k => $v) {
|
foreach ($value as $k => $v) {
|
||||||
$this->out("{$key}[{$k}] => " . $v);
|
$this->out("{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->out("{$key} => " . $value);
|
$this->out("{$key} => " . $value);
|
||||||
|
@ -154,7 +154,7 @@ HELP;
|
||||||
foreach ($section as $key => $value) {
|
foreach ($section as $key => $value) {
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
foreach ($value as $k => $v) {
|
foreach ($value as $k => $v) {
|
||||||
$this->out("{$cat}.{$key}[{$k}] => " . $v);
|
$this->out("{$cat}.{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->out("{$cat}.{$key} => " . $value);
|
$this->out("{$cat}.{$key} => " . $value);
|
||||||
|
|
Loading…
Reference in a new issue