do not quote result if it is a single value
This commit is contained in:
parent
d90a9880db
commit
849b35a72a
1 changed files with 2 additions and 1 deletions
3
bin/cfg
3
bin/cfg
|
|
@ -219,7 +219,8 @@ if ($result instanceof Settings) $result = $result->toArray();
|
|||
switch ($argv->find('action'))
|
||||
{
|
||||
case 'show':
|
||||
echo json_encode($result, JSON_PRETTY_PRINT).PHP_EOL;
|
||||
$out = (is_string($result)) ? $result : json_encode($result, JSON_PRETTY_PRINT);
|
||||
echo $out.PHP_EOL;
|
||||
break;
|
||||
|
||||
case 'write':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue