aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/database.php2
-rw-r--r--engine/lib/plugins.php8
2 files changed, 6 insertions, 4 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 3170f3ac1..da068effd 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -156,7 +156,7 @@ function db_profiling_shutdown_hook() {
* @return void
*/
function db_delayedexecution_shutdown_hook() {
- global $DB_DELAYED_QUERIES, $CONFIG;
+ global $DB_DELAYED_QUERIES;
foreach ($DB_DELAYED_QUERIES as $query_details) {
// use one of our db functions so it is included in profiling.
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;
+ }
}
}