Explorar o código

ZF-8395: fixed missing array index check

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19249 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate %!s(int64=16) %!d(string=hai) anos
pai
achega
c76b9b2366
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/Zend/Cache/Backend/Memcached.php

+ 1 - 1
library/Zend/Cache/Backend/Memcached.php

@@ -178,7 +178,7 @@ class Zend_Cache_Backend_Memcached extends Zend_Cache_Backend implements Zend_Ca
     public function load($id, $doNotTestCacheValidity = false)
     {
         $tmp = $this->_memcache->get($id);
-        if (is_array($tmp)) {
+        if (is_array($tmp) && isset($tmp[0])) {
             return $tmp[0];
         }
         return false;