]> granicus.if.org Git - php/commitdiff
remove the check, cause i don't really know, if content has to be an array everytime
authorChristian Dickmann <dickmann@php.net>
Sun, 24 Nov 2002 10:15:25 +0000 (10:15 +0000)
committerChristian Dickmann <dickmann@php.net>
Sun, 24 Nov 2002 10:15:25 +0000 (10:15 +0000)
pear/PEAR/Remote.php

index 6925906c8b3a8986fb237bd87cbc8eaff3e4b4e8..d7b6e70e5260ef39c16f93b984afec486650990a 100644 (file)
@@ -108,7 +108,7 @@ class PEAR_Remote extends PEAR
         $this->cache = $this->getCache($args);
         $cachettl = $this->config->get('cache_ttl');
         // If cache is newer than $cachettl seconds, we use the cache!
-        if ($this->cache !== null && $this->cache['age'] < $cachettl && is_array($this->cache['content'])) {
+        if ($this->cache !== null && $this->cache['age'] < $cachettl) {
             return $this->cache['content'];
         };