]> git.mxchange.org Git - friendica.git/commitdiff
Bugfixing Config output for memcached_hosts[]
authorPhilipp Holzer <admin@philipp.info>
Mon, 4 Feb 2019 00:19:01 +0000 (01:19 +0100)
committerPhilipp Holzer <admin@philipp.info>
Mon, 4 Feb 2019 00:19:01 +0000 (01:19 +0100)
src/Core/Console/Config.php

index c72e26906f23e5237331d4dce3df1e056bd23190..b1c3df54e024fc59738c259c9cddf0b54327292b 100644 (file)
@@ -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);