Helgi Þormar Þorbjörnsson
2011-06-01 04:57:58 UTC
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']);
}
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']);
}