From: Zach Copley Date: Fri, 26 Mar 2010 19:55:16 +0000 (+0000) Subject: Really make sure we return 'true' and 'false' strings for boolean vals in api/statusn... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15736ea4353a282eb65f7ffa3e367d1957dfbaf4;p=quix0rs-gnu-social.git Really 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..76d37ea97f 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 ($value === false || $value == '0') { $value = 'false'; - } else if ($value === true) { + } else if ($value === true || $value == '1') { $value = 'true'; }