Fix non-array return value in some cases on php 5.3.2, fixes #927
parent
84dd1fc1bf
commit
5ec41d83b4
|
@ -115,7 +115,9 @@ class ChannelRest11Reader extends BaseChannelReader
|
|||
}
|
||||
|
||||
$releases = array();
|
||||
foreach ($packageInfo->xpath('ns:a/ns:r') as $node) {
|
||||
$releasesInfo = $packageInfo->xpath('ns:a/ns:r');
|
||||
if ($releasesInfo) {
|
||||
foreach ($releasesInfo as $node) {
|
||||
$releaseVersion = (string) $node->v;
|
||||
$releaseStability = (string) $node->s;
|
||||
$releases[$releaseVersion] = new ReleaseInfo(
|
||||
|
@ -123,6 +125,7 @@ class ChannelRest11Reader extends BaseChannelReader
|
|||
isset($dependencies[$releaseVersion]) ? $dependencies[$releaseVersion] : new DependencyInfo(array(), array())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return new PackageInfo(
|
||||
$channelName,
|
||||
|
|
Loading…
Reference in New Issue