1
0
Fork 0

fix previous commit

pull/257/merge
Jordi Boggiano 2012-02-03 20:32:09 +01:00
parent e1a11302a8
commit 568d9dabf6
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class PearRepository extends ArrayRepository
foreach ($categories as $category) { foreach ($categories as $category) {
$categoryLink = $category->getAttribute("xlink:href"); $categoryLink = $category->getAttribute("xlink:href");
$categoryLink = str_replace("info.xml", "packages.xml", $categoryLink); $categoryLink = str_replace("info.xml", "packages.xml", $categoryLink);
if ($categoryLink[0] != '/') { if ('/' !== substr($categoryLink, 0, 1)) {
$categoryLink = '/' . $categoryLink; $categoryLink = '/' . $categoryLink;
} }
$packagesXML = $this->requestXml($this->url . $categoryLink); $packagesXML = $this->requestXml($this->url . $categoryLink);