From 1d5c8ee50082dd0221055969283b27f2b09b3bb4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 15:41:15 +0300 Subject: [PATCH] prefs: fix user plugins shown by incorrect criteria --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 43993007a..c1351d12d 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -947,7 +947,7 @@ class Pref_Prefs extends Handler_Protected { foreach ($tmppluginhost->get_plugins() as $name => $plugin) { $about = $plugin->about(); - if ($about[3] ?? true) { + if (empty($about[3]) || $about[3] == false) { $checked = ""; $disabled = "";