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:
commit
8f19423c22
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue