fix previous commit
parent
e1a11302a8
commit
568d9dabf6
|
@ -53,7 +53,7 @@ class PearRepository extends ArrayRepository
|
|||
foreach ($categories as $category) {
|
||||
$categoryLink = $category->getAttribute("xlink:href");
|
||||
$categoryLink = str_replace("info.xml", "packages.xml", $categoryLink);
|
||||
if ($categoryLink[0] != '/') {
|
||||
if ('/' !== substr($categoryLink, 0, 1)) {
|
||||
$categoryLink = '/' . $categoryLink;
|
||||
}
|
||||
$packagesXML = $this->requestXml($this->url . $categoryLink);
|
||||
|
|
Loading…
Reference in New Issue