From c9a3916c34f4413167b6afccac0d05a24754a5fb Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Fri, 26 Mar 2010 19:55:16 +0000 Subject: Really make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format. --- actions/apistatusnetconfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/apistatusnetconfig.php b/actions/apistatusnetconfig.php index 66b23c02d..76d37ea97 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'; } -- cgit v1.2.3-54-g00ecf