diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index a77c1abaa..907c639b3 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -950,7 +950,7 @@ class Pref_Prefs extends Handler_Protected { foreach ($tmppluginhost->get_plugins() as $name => $plugin) { $about = $plugin->about(); - if ($about[3] ?? false) { + if ($about[3] ?? true) { $checked = ""; $disabled = ""; diff --git a/include/functions.php b/include/functions.php index 2db559a92..f870f3382 100644 --- a/include/functions.php +++ b/include/functions.php @@ -244,7 +244,7 @@ // this is used for user http parameters unless HTML code is actually needed function clean($param) { if (is_array($param)) { - return trim(array_map("strip_tags", $param)); + return array_map("trim", array_map("strip_tags", $param)); } else if (is_string($param)) { return trim(strip_tags($param)); } else {