X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FConfig.php;h=e32983a68a652aa6e332710798e002afb25acadd;hb=d3624af1b6e8c60b5fea5de65a177740a9423468;hp=831ea9e9c5156822bf8ef7dbb57a0efc89fc4f8d;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git diff --git a/src/Console/Config.php b/src/Console/Config.php index 831ea9e9c5..e32983a68a 100644 --- a/src/Console/Config.php +++ b/src/Console/Config.php @@ -1,6 +1,6 @@ config->get($cat, $key) === $value) { + throw new RuntimeException("$cat.$key already set to $value."); + } + $result = $this->config->set($cat, $key, $value); if ($result) { $this->out("{$cat}.{$key} <= " . @@ -147,7 +151,7 @@ HELP; $this->out("{$cat}.{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v)); } } else { - $this->out("{$cat}.{$key} => " . $value); + $this->out("{$cat}.{$key} => " . ($value ?? 'NULL')); } }