cvs: pear-core /PEAR/REST 10.php
| From: | Greg Beaver | Date: | Wed, 20 Jul 2005 22:14:22 +0000 |
| Subject: | cvs: pear-core /PEAR/REST 10.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-33170@lists.php.net to get a copy of this message | ||
cellog Wed Jul 20 18:14:22 2005 EDT
Modified files:
/pear-core/PEAR/REST 10.php
Log:
fix Bug #4817: Fix warning with corrupt cache
http://cvs.php.net/diff.php/pear-core/PEAR/REST/10.php?r1=1.28&r2=1.29&ty=u
Index: pear-core/PEAR/REST/10.php
diff -u pear-core/PEAR/REST/10.php:1.28 pear-core/PEAR/REST/10.php:1.29
--- pear-core/PEAR/REST/10.php:1.28 Sat May 14 23:17:10 2005
+++ pear-core/PEAR/REST/10.php Wed Jul 20 18:14:21 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: 10.php,v 1.28 2005/05/15 03:17:10 cellog Exp $
+ * @version CVS: $Id: 10.php,v 1.29 2005/07/20 22:14:21 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a12
*/
@@ -119,7 +119,7 @@
return PEAR::raiseError('Package "' . $deppackage['channel'] .
'/' . $deppackage['package']
. '" dependency "' . $channel . '/' . $package .
'" has no releases');
}
- if (!isset($info['r'])) {
+ if (!is_array($info) || !isset($info['r'])) {
return false;
}
$exclude = array();