Skip to content

Commit

Permalink
Use string comparison for release versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhattan committed Jul 26, 2016
1 parent 5755f85 commit 6ee35e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Drush/UpdateService/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private static function getBestRelease(array $releases) {
private function searchReleases($key, $value) {
$releases = array();
foreach ($this->parsed['releases'] as $version => $release) {
if ($release['status'] == 'published' && isset($release[$key]) && $release[$key] == $value) {
if ($release['status'] == 'published' && isset($release[$key]) && strcmp($release[$key], $value) == 0) {
$releases[$version] = $release;
}
}
Expand Down

0 comments on commit 6ee35e9

Please sign in to comment.