aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/systemsettings/install.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php
index 04dbe87e4..69d321477 100644
--- a/actions/systemsettings/install.php
+++ b/actions/systemsettings/install.php
@@ -88,8 +88,12 @@
// activate some plugins by default
if (isset($CONFIG->default_plugins))
- {
- $plugins = explode(',', $CONFIG->default_plugins);
+ {
+ if (!is_array($CONFIG->default_plugins))
+ $plugins = explode(',', $CONFIG->default_plugins);
+ else
+ $CONFIG->default_plugins = $CONFIG->default_plugins;
+
foreach ($plugins as $plugin)
enable_plugin(trim($plugin), $site->getGUID());
}