summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Caching/TCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Caching/TCache.php b/framework/Caching/TCache.php
index 7c251629..3c070320 100644
--- a/framework/Caching/TCache.php
+++ b/framework/Caching/TCache.php
@@ -122,7 +122,7 @@ abstract class TCache extends TModule implements ICache
if(($value=$this->getValue($this->generateUniqueKey($id)))!==false)
{
$data=unserialize($value);
- if(!is_array($value))
+ if(!is_array($data))
return false;
if(!($data[1] instanceof ICacheDependency) || !$data[1]->getHasChanged())
return $data[0];