aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-22 12:49:44 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-22 12:49:44 +0000
commit8655a3334d7cee94d4c36baf05401237f7d74dc7 (patch)
tree2369957ffff88e65d92603a66baf5637a3fa5a36 /engine/lib/plugins.php
parent2b6c87dac7970fd44b7216c23c9279c37c463942 (diff)
downloadelgg-8655a3334d7cee94d4c36baf05401237f7d74dc7.tar.gz
elgg-8655a3334d7cee94d4c36baf05401237f7d74dc7.tar.bz2
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
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r--engine/lib/plugins.php8
1 files changed, 5 insertions, 3 deletions
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;
+ }
}
}