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