af_psql_trgm: fix warning

This commit is contained in:
Andrew Dolgov 2021-02-08 11:47:41 +03:00
parent d293cbd5a9
commit 9de26d44da
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class Af_Psql_Trgm extends Plugin {
function hook_prefs_save_feed($feed_id) { function hook_prefs_save_feed($feed_id) {
$enabled_feeds = $this->get_stored_array("enabled_feeds"); $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); $key = array_search($feed_id, $enabled_feeds);
if ($enable) { if ($enable) {