diff options
author | Andrew Dolgov <[email protected]> | 2021-02-17 14:14:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-17 14:14:17 +0300 |
commit | 4632d6cf558774cfcb17b3b4cf10399c3626096b (patch) | |
tree | 87efa038edc802bcfae78839f5dbed540ec3b1a3 /plugins | |
parent | e9c3118ddd2b08aff0285166ba608edd3fd5708f (diff) |
fix some php8 warnings
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/af_psql_trgm/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index d1a029adc..1d83ce5e0 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -15,7 +15,7 @@ class Af_Psql_Trgm extends Plugin { function save() { $similarity = (float) $_POST["similarity"]; $min_title_length = (int) $_POST["min_title_length"]; - $enable_globally = checkbox_to_sql_bool($_POST["enable_globally"]); + $enable_globally = checkbox_to_sql_bool($_POST["enable_globally"] ?? ""); if ($similarity < 0) $similarity = 0; if ($similarity > 1) $similarity = 1; |