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
This commit is contained in:
fox 2022-07-16 17:55:59 +03:00
commit 8f19423c22
1 changed files with 1 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ class Pref_Prefs extends Handler_Protected {
} }
function setplugins(): void { function setplugins(): void {
$plugins = array_filter($_REQUEST["plugins"], 'clean') ?? []; $plugins = array_filter($_REQUEST["plugins"] ?? [], 'clean');
set_pref(Prefs::_ENABLED_PLUGINS, implode(",", $plugins)); set_pref(Prefs::_ENABLED_PLUGINS, implode(",", $plugins));
} }