summaryrefslogtreecommitdiff
path: root/plugins/af_readability
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-02 14:07:48 +0300
committerAndrew Dolgov <[email protected]>2017-12-02 14:07:48 +0300
commitda9ea57d1c1602899111df615639d9f013f7226f (patch)
tree7568296421390ad0343a3ccfcae8e283a10e1586 /plugins/af_readability
parent7ccb4e91ff45cab907b43de1cc36a3b0ab5a025d (diff)
checkbox to sql bool related changes, some more boolean fixes
Diffstat (limited to 'plugins/af_readability')
-rwxr-xr-xplugins/af_readability/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php
index 192ad90b6..873eba1ba 100755
--- a/plugins/af_readability/init.php
+++ b/plugins/af_readability/init.php
@@ -14,7 +14,7 @@ class Af_Readability extends Plugin {
}
function save() {
- $enable_share_anything = checkbox_to_sql_bool($_POST["enable_share_anything"]) == "true";
+ $enable_share_anything = checkbox_to_sql_bool($_POST["enable_share_anything"]);
$this->host->set($this, "enable_share_anything", $enable_share_anything);
@@ -112,7 +112,7 @@ class Af_Readability extends Plugin {
$enabled_feeds = $this->host->get($this, "enabled_feeds");
if (!is_array($enabled_feeds)) $enabled_feeds = array();
- $enable = checkbox_to_sql_bool($_POST["af_readability_enabled"]) == 'true';
+ $enable = checkbox_to_sql_bool($_POST["af_readability_enabled"]);
$key = array_search($feed_id, $enabled_feeds);
if ($enable) {