summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-05 11:59:44 +0300
committerAndrew Dolgov <[email protected]>2017-12-05 11:59:44 +0300
commitaac365d84212c1956719958e242ff724ec786e5d (patch)
tree68c456b5ad2b0ec2b7b7d159d4b0634159b56f54
parent38c05709889a17493361160e0a424297e41cc072 (diff)
use checkbox_to_sql_bool() properlypdo-experimental
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 925dab6..0485c91 100755
--- a/init.php
+++ b/init.php
@@ -175,7 +175,7 @@ class Af_Zz_Img_Phash extends Plugin {
$enabled_feeds = $this->host->get($this, "enabled_feeds");
if (!is_array($enabled_feeds)) $enabled_feeds = array();
- $enable = checkbox_to_sql_bool($_POST["phash_similarity_enabled"]) == 'true';
+ $enable = checkbox_to_sql_bool($_POST["phash_similarity_enabled"]);
$key = array_search($feed_id, $enabled_feeds);
if ($enable) {