From f4c02a157a51c44c9772e609fcf0e360db42d060 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Feb 2013 09:13:00 +0400 Subject: [PATCH] fix warning when saving plugins with 0 plugins enabled (closes #542) --- classes/pref/prefs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index eb84bde9..810b1e16 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -824,7 +824,10 @@ class Pref_Prefs extends Handler_Protected { } function setplugins() { - $plugins = join(",", $_REQUEST["plugins"]); + if (is_array($_REQUEST["plugins"])) + $plugins = join(",", $_REQUEST["plugins"]); + else + $plugins = ""; set_pref($this->link, "_ENABLED_PLUGINS", $plugins); } -- 2.39.5