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:41:52 +00:00
parent 379df1ce3e
commit 419c38cc0b
1 changed files with 2 additions and 2 deletions

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 ((bool)$value === false) {
$value = 'false';
} else if ($value === true) {
} else if ((bool)$value === true) {
$value = 'true';
}