diff options
author | Zach Copley <zach@status.net> | 2010-03-26 19:41:52 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-26 19:41:52 +0000 |
commit | 419c38cc0bf3f2649be9ad18e983b9f0ac8dfec0 (patch) | |
tree | b81de24e0e6856402dd52851fc2b68db4b77ffa4 /actions/apistatusnetconfig.php | |
parent | 379df1ce3e7fa38b2e9ed8324d9ed43bbb4a5219 (diff) |
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..85564d574 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'; } |