diff options
author | fox <[email protected]> | 2022-07-16 17:55:59 +0300 |
---|---|---|
committer | fox <[email protected]> | 2022-07-16 17:55:59 +0300 |
commit | 8f19423c224915c5f2f590cc534003620d7acd58 (patch) | |
tree | 41f3b372a4b3449263cdd5c5d6d23461c609a6cc /classes/pref | |
parent | fdd1c43612011060b4b876db438eb7ec62dd077d (diff) | |
parent | f3aceb4648ad95d50ae55235e4654f3c2b2d538e (diff) |
Merge pull request 'Fix an error when disabling all user plugins' (#76) from yan12125/tt-rss:fix-setPlugins-error into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/76
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 8c044b49f..7acd06aa4 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1024,7 +1024,7 @@ class Pref_Prefs extends Handler_Protected { } function setplugins(): void { - $plugins = array_filter($_REQUEST["plugins"], 'clean') ?? []; + $plugins = array_filter($_REQUEST["plugins"] ?? [], 'clean'); set_pref(Prefs::_ENABLED_PLUGINS, implode(",", $plugins)); } |