From 8d3277622573d2aeae294096ff8d36bbf5c630eb Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 14 Oct 2006 10:31:34 +0000 Subject: [PATCH] BC --- includes/CacheDependency.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CacheDependency.php b/includes/CacheDependency.php index 6a591767d4..4bb3d32868 100644 --- a/includes/CacheDependency.php +++ b/includes/CacheDependency.php @@ -81,7 +81,7 @@ class DependencyWrapper { $callbackParams = array(), $deps = array() ) { $obj = $cache->get( $key ); - if ( $obj && !$obj->isExpired() ) { + if ( is_object( $obj ) && $obj instanceof DependencyWrapper && !$obj->isExpired() ) { $value = $obj->value; } elseif ( $callback ) { $value = call_user_func_array( $callback, $callbackParams ); -- 2.20.1