diff options
author | Zach Copley <zach@status.net> | 2010-03-26 19:55:16 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-26 19:55:16 +0000 |
commit | f609d49aea8018616e274b56454da2f120307051 (patch) | |
tree | b49a77bdfa04162a8f1af88923c6aca5856e5f5c /actions/apistatusnetconfig.php | |
parent | a9b130fc000638565a4cbc010fe13eeba37e90ff (diff) |
Really make sure we return 'true' and 'false' strings for boolean vals in api/statusnet/config.:format.
Diffstat (limited to 'actions/apistatusnetconfig.php')
-rw-r--r-- | actions/apistatusnetconfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'; } |