Really make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format.

This commit is contained in:
Zach Copley 2010-03-26 19:55:16 +00:00
parent a9b130fc00
commit f609d49aea

View File

@ -103,9 +103,9 @@ class ApiStatusnetConfigAction extends ApiAction
$value = common_config($section, $setting);
if (is_array($value)) {
$value = implode(',', $value);
} else if ($value === false) {
} else if ($value === false || $value == '0') {
$value = 'false';
} else if ($value === true) {
} else if ($value === true || $value == '1') {
$value = 'true';
}