From 9de26d44da61f15d1be8762416ddd1f36a1baaa2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 11:47:41 +0300 Subject: [PATCH] af_psql_trgm: fix warning --- plugins/af_psql_trgm/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index a38386d5b..faacf2da7 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -238,7 +238,7 @@ class Af_Psql_Trgm extends Plugin { function hook_prefs_save_feed($feed_id) { $enabled_feeds = $this->get_stored_array("enabled_feeds"); - $enable = checkbox_to_sql_bool($_POST["trgm_similarity_enabled"]); + $enable = checkbox_to_sql_bool($_POST["trgm_similarity_enabled"] ?? ""); $key = array_search($feed_id, $enabled_feeds); if ($enable) {