summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/cache.php')
-rw-r--r--wp-inst/wp-includes/cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/cache.php b/wp-inst/wp-includes/cache.php
index 7f3c066..34eda42 100644
--- a/wp-inst/wp-includes/cache.php
+++ b/wp-inst/wp-includes/cache.php
@@ -184,6 +184,9 @@ class WP_Object_Cache {
}
$wpdb->show_errors();
+ if ( ! $options )
+ return;
+
foreach ($options as $option) {
$this->cache['options'][$option->option_name] = $option->option_value;
}