summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--class/PackagistClient.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/class/PackagistClient.php b/class/PackagistClient.php
index 2fbb522..2120d36 100644
--- a/class/PackagistClient.php
+++ b/class/PackagistClient.php
@@ -81,7 +81,8 @@ class PackagistClient
'unstable' => NULL,
'state' => NULL,
);
- foreach ($pkgs['package']['versions'] as $pkver => $pkg) {
+ foreach ($pkgs['package']['versions'] as $notused => $pkg) {
+ $pkver = $pkg['version'];
if (preg_match('/^v[0-9]/', $pkver)) {
$pkver = substr($pkver, 1);
}