]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Make sure we return 'true' and 'false' strings for boolean vals in api/status...
authorZach Copley <zach@status.net>
Fri, 26 Mar 2010 19:48:07 +0000 (19:48 +0000)
committerZach Copley <zach@status.net>
Fri, 26 Mar 2010 19:48:07 +0000 (19:48 +0000)
This reverts commit 419c38cc0bf3f2649be9ad18e983b9f0ac8dfec0.

actions/apistatusnetconfig.php

index 85564d574b24ac12f999b7efec14b3b5b2994b87..66b23c02d5db082be206395eaa9788e3db0f9220 100644 (file)
@@ -103,9 +103,9 @@ class ApiStatusnetConfigAction extends ApiAction
                     $value = common_config($section, $setting);
                     if (is_array($value)) {
                         $value = implode(',', $value);
-                    } else if ((bool)$value === false) {
+                    } else if ($value === false) {
                         $value = 'false';
-                    } else if ((bool)$value === true) {
+                    } else if ($value === true) {
                         $value = 'true';
                     }