svn: /pear/pear-core/trunk/PEAR/REST/ 10.php
[email protected] (Helgi Þormar Þorbjörnsson) Wed, 01 Jun 2011 04:57:58 +0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
--2d30042c02572bf3d41988d25fc2e3b486cbed3f
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
dufuz Wed, 01 Jun 2011 04:57:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311690
Log:
Fixed Bug #18486: REST/10.php does not check error condition [dufuz]
# Ported from tag PEAR-1.9.3
Bug: http://pear.php.net/bugs/18486 (unknown)
Changed paths:
U pear/pear-core/trunk/PEAR/REST/10.php
Modified: pear/pear-core/trunk/PEAR/REST/10.php
===================================================================
--- pear/pear-core/trunk/PEAR/REST/10.php 2011-06-01 04:57:34 UTC (rev 311689)
+++ pear/pear-core/trunk/PEAR/REST/10.php 2011-06-01 04:57:58 UTC (rev 311690)
@@ -292,6 +292,10 @@
$allinfo = $this->_rest->retrieveData($base . 'r/' . $packageLower .
'/allreleases.xml', false, false, $channel);
+ if (PEAR::isError($allinfo)) {
+ return $allinfo;
+ }
+
if (!is_array($allinfo['r']) || !isset($allinfo['r'][0])) {
$allinfo['r'] = array($allinfo['r']);
}
--2d30042c02572bf3d41988d25fc2e3b486cbed3f--