From: Philipp Holzer Date: Mon, 4 Feb 2019 00:19:01 +0000 (+0100) Subject: Bugfixing Config output for memcached_hosts[] X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6dd74690d4474f5dac6ab92d6ebfe4844a27aca;p=friendica.git Bugfixing Config output for memcached_hosts[] --- diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index c72e26906f..b1c3df54e0 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -113,7 +113,7 @@ HELP; if (is_array($value)) { foreach ($value as $k => $v) { - $this->out("{$cat}.{$key}[{$k}] => " . $v); + $this->out("{$cat}.{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v)); } } else { $this->out("{$cat}.{$key} => " . $value); @@ -130,7 +130,7 @@ HELP; foreach ($catVal as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { - $this->out("{$key}[{$k}] => " . $v); + $this->out("{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v)); } } else { $this->out("{$key} => " . $value); @@ -154,7 +154,7 @@ HELP; foreach ($section as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { - $this->out("{$cat}.{$key}[{$k}] => " . $v); + $this->out("{$cat}.{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v)); } } else { $this->out("{$cat}.{$key} => " . $value);