cvs: pear-core /PEAR REST.php
| From: | Greg Beaver | Date: | Sat, 13 Aug 2005 22:25:15 +0000 |
| Subject: | cvs: pear-core /PEAR REST.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3513@lists.php.net to get a copy of this message | ||
cellog Sat Aug 13 18:25:15 2005 EDT
Modified files:
/pear-core/PEAR REST.php
Log:
fix Bug #5073: cache fatal error if no cached content
http://cvs.php.net/diff.php/pear-core/PEAR/REST.php?r1=1.12&r2=1.13&ty=u
Index: pear-core/PEAR/REST.php
diff -u pear-core/PEAR/REST.php:1.12 pear-core/PEAR/REST.php:1.13
--- pear-core/PEAR/REST.php:1.12 Sat Aug 13 01:27:19 2005
+++ pear-core/PEAR/REST.php Sat Aug 13 18:25:15 2005
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: REST.php,v 1.12 2005/08/13 05:27:19 cellog Exp $
+ * @version CVS: $Id: REST.php,v 1.13 2005/08/13 22:25:15 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -85,7 +85,7 @@
}
if (!isset($this->_options['offline'])) {
$trieddownload = true;
- $file = $this->downloadHttp($url, $cacheId['lastChange'], $accept);
+ $file = $this->downloadHttp($url, $cacheId ? $cacheId['lastChange'] :
false, $accept);
} else {
$trieddownload = false;
$file = false;