]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix warning when saving plugins with 0 plugins enabled (closes #542)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Feb 2013 05:13:00 +0000 (09:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Feb 2013 05:13:00 +0000 (09:13 +0400)
classes/pref/prefs.php

index eb84bde997f6ecb708ded3b573faad85cdd5fbbf..810b1e164ad41f87cfbe8b4d6dbc12b15e0eb175 100644 (file)
@@ -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);
        }