mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:45:55 +00:00
fix warning when saving plugins with 0 plugins enabled (closes #542)
This commit is contained in:
@@ -824,7 +824,10 @@ class Pref_Prefs extends Handler_Protected {
|
||||
}
|
||||
|
||||
function setplugins() {
|
||||
if (is_array($_REQUEST["plugins"]))
|
||||
$plugins = join(",", $_REQUEST["plugins"]);
|
||||
else
|
||||
$plugins = "";
|
||||
|
||||
set_pref($this->link, "_ENABLED_PLUGINS", $plugins);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user