Really make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format.
This commit is contained in:
parent
60009227f7
commit
15736ea435
|
@ -103,9 +103,9 @@ class ApiStatusnetConfigAction extends ApiAction
|
||||||
$value = common_config($section, $setting);
|
$value = common_config($section, $setting);
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
$value = implode(',', $value);
|
$value = implode(',', $value);
|
||||||
} else if ($value === false) {
|
} else if ($value === false || $value == '0') {
|
||||||
$value = 'false';
|
$value = 'false';
|
||||||
} else if ($value === true) {
|
} else if ($value === true || $value == '1') {
|
||||||
$value = 'true';
|
$value = 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user