fix warning when saving plugins with 0 plugins enabled (closes #542)

This commit is contained in:
Andrew Dolgov 2013-02-28 09:13:00 +04:00
parent 67cad82e60
commit f4c02a157a
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}