Skip to content

Commit

Permalink
Fix #1084: Pending update for webform not being reported correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhattan committed Jan 9, 2015
1 parent cb98431 commit 73dda9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Drush/UpdateService/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ private static function parseXml(\SimpleXMLElement $xml) {

$recommended_major = empty($project_info['recommended_major']) ? '' : $project_info['recommended_major'];
$supported_majors = empty($project_info['supported_majors']) ? array() : array_flip(explode(',', $project_info['supported_majors']));
$recommended_version = NULL;
$latest_version = NULL;

$items = array(
'name', 'date', 'status', 'type',
Expand Down Expand Up @@ -244,7 +242,9 @@ private static function parseXml(\SimpleXMLElement $xml) {
}

$project_info['releases'] = $releases;
$project_info['recommended'] = $recommended_version;
if (isset($recommended_version)) {
$project_info['recommended'] = $recommended_version;
}

return $project_info;
}
Expand Down

0 comments on commit 73dda9a

Please sign in to comment.