X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=plugins%2Faf_readability%2Finit.php;h=873eba1bae90c16c818412834966b38763033f60;hb=da9ea57d1c1602899111df615639d9f013f7226f;hp=192ad90b6efef9d8e8cb61fe1c25c006d4573c71;hpb=7ccb4e91ff45cab907b43de1cc36a3b0ab5a025d;p=tt-rss.git diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 192ad90b..873eba1b 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) {