From 8655a3334d7cee94d4c36baf05401237f7d74dc7 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 22 Nov 2010 12:49:44 +0000 Subject: Refs #2673 moved changes into trunk from 1.7 branch git-svn-id: http://code.elgg.org/elgg/trunk@7417 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/plugins.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engine/lib/plugins.php') diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 3649fddb7..c0ec7f389 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -837,9 +837,11 @@ function is_plugin_enabled($plugin, $site_guid = 0) { $ENABLED_PLUGINS_CACHE = $enabled_plugins; } - foreach ($ENABLED_PLUGINS_CACHE as $e) { - if ($e == $plugin) { - return true; + if (is_array($ENABLED_PLUGINS_CACHE)) { + foreach ($ENABLED_PLUGINS_CACHE as $e) { + if ($e == $plugin) { + return true; + } } } -- cgit v1.2.3