From: Zach Copley Date: Fri, 26 Mar 2010 19:48:07 +0000 (+0000) Subject: Revert "Make sure we return 'true' and 'false' strings for boolean vals in api/status... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9b130fc000638565a4cbc010fe13eeba37e90ff;p=quix0rs-gnu-social.git Revert "Make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format" This reverts commit 419c38cc0bf3f2649be9ad18e983b9f0ac8dfec0. --- diff --git a/actions/apistatusnetconfig.php b/actions/apistatusnetconfig.php index 85564d574b..66b23c02d5 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 ((bool)$value === false) { + } else if ($value === false) { $value = 'false'; - } else if ((bool)$value === true) { + } else if ($value === true) { $value = 'true'; }