summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-26 19:55:16 +0000
committerZach Copley <zach@status.net>2010-03-26 19:59:05 +0000
commit15736ea4353a282eb65f7ffa3e367d1957dfbaf4 (patch)
treec38cbef0c69b2e9f0aba187c89dc8767f47ab4dc
parent60009227f724e67b0205ae9eb77306107f2e4681 (diff)
Really make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format.
-rw-r--r--actions/apistatusnetconfig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apistatusnetconfig.php b/actions/apistatusnetconfig.php
index 66b23c02d..76d37ea97 100644
--- a/actions/apistatusnetconfig.php
+++ b/actions/apistatusnetconfig.php
@@ -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';
}