]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Really make sure we return 'true' and 'false' strings for boolean vals in api/statusn...
authorZach Copley <zach@status.net>
Fri, 26 Mar 2010 19:55:16 +0000 (19:55 +0000)
committerZach Copley <zach@status.net>
Fri, 26 Mar 2010 19:58:26 +0000 (19:58 +0000)
actions/apistatusnetconfig.php

index 66b23c02d5db082be206395eaa9788e3db0f9220..76d37ea97f83a919de56d639cd937d05ad3c6483 100644 (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';
                     }