fix warning when saving plugins with 0 plugins enabled (closes #542)
This commit is contained in:
parent
67cad82e60
commit
f4c02a157a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue