diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 09:35:59 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 09:35:59 +0300 |
commit | 187abfe732fe62cf4b30847665dab30903d00d99 (patch) | |
tree | 1a0b4084e8b6a38bd6cf937368819b737747e995 /classes/opml.php | |
parent | 8ff3cbb32e8fcae1e8ce7d83e5718f43afaacdb8 (diff) |
main classes: remove sql_bool_to_bool() kludge
Diffstat (limited to 'classes/opml.php')
-rw-r--r-- | classes/opml.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/classes/opml.php b/classes/opml.php index 5f70558b6..98ea21a5c 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -173,10 +173,6 @@ class Opml extends Handler_Protected { $sth->execute([$owner_uid]); while ($line = $sth->fetch()) { - foreach (array('enabled', 'match_any_rule', 'inverse') as $b) { - $line[$b] = sql_bool_to_bool($line[$b]); - } - $line["rules"] = array(); $line["actions"] = array(); @@ -188,7 +184,7 @@ class Opml extends Handler_Protected { unset($tmp_line["id"]); unset($tmp_line["filter_id"]); - $cat_filter = sql_bool_to_bool($tmp_line["cat_filter"]); + $cat_filter = $tmp_line["cat_filter"]; if (!$tmp_line["match_on"]) { if ($cat_filter && $tmp_line["cat_id"] || $tmp_line["feed_id"]) { @@ -222,9 +218,6 @@ class Opml extends Handler_Protected { unset($tmp_line["match_on"]); } - $tmp_line["cat_filter"] = sql_bool_to_bool($tmp_line["cat_filter"]); - $tmp_line["inverse"] = sql_bool_to_bool($tmp_line["inverse"]); - unset($tmp_line["feed_id"]); unset($tmp_line["cat_id"]); |