From: Tim Starling Date: Sat, 14 Oct 2006 10:31:34 +0000 (+0000) Subject: BC X-Git-Tag: 1.31.0-rc.0~55491 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=8d3277622573d2aeae294096ff8d36bbf5c630eb;p=lhc%2Fweb%2Fwiklou.git BC --- 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 );