1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:15:55 +00:00

checkbox to sql bool related changes, some more boolean fixes

This commit is contained in:
Andrew Dolgov
2017-12-02 14:07:48 +03:00
parent 7ccb4e91ff
commit da9ea57d1c
6 changed files with 10 additions and 10 deletions

View File

@@ -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) {