diff --git a/include/functions.php b/include/functions.php index 072779615..cdd783cdc 100644 --- a/include/functions.php +++ b/include/functions.php @@ -667,10 +667,11 @@ print ""; } - function print_checkbox($id, $checked, $attributes = "") { + function print_checkbox($id, $checked, $value = "", $attributes = "") { $checked_str = $checked ? "checked" : ""; + $value_str = $value ? "value=\"$value\"" : ""; - print ""; + print ""; } function print_button($type, $value, $attributes = "") { diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index 63c52bf2d..8c92be1ab 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -134,8 +134,6 @@ class Af_Psql_Trgm extends Plugin { if (!$similarity) $similarity = '0.75'; if (!$min_title_length) $min_title_length = '32'; - $enable_globally_checked = $enable_globally ? "checked" : ""; - print "