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

index 66b23c02d5db082be206395eaa9788e3db0f9220..85564d574b24ac12f999b7efec14b3b5b2994b87 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 ((bool)$value === false) {
                         $value = 'false';
-                    } else if ($value === true) {
+                    } else if ((bool)$value === true) {
                         $value = 'true';
                     }