fix some php8 warnings

This commit is contained in:
Andrew Dolgov 2021-02-17 14:14:17 +03:00
parent e9c3118ddd
commit 4632d6cf55
1 changed files with 1 additions and 1 deletions

View File

@ -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;