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