Skip to content

Commit 6a30e45

Browse files
committed
Don't check total value to see if there's an exact match
I don't see it in the response when using signature in request.
1 parent aa7d770 commit 6a30e45

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Command/InstallPackageCommand.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,10 @@ private function download($packageName, $provider, $options = array()) {
189189
// when we got a match (non 404), extract package information
190190
if (!$response->isError()) {
191191

192-
$foundPkg = simplexml_load_string ($response->response);
192+
$foundPkg = simplexml_load_string($response->response);
193193

194194
// no matches, skip empty package name
195-
if ($foundPkg['total'] > 0) {
196-
195+
if ($foundPkg) {
197196
$packages[strtolower((string) $foundPkg->name)] = array (
198197
'name' => (string) $foundPkg->name,
199198
'version' => (string) $foundPkg->version,

0 commit comments

Comments
 (0)