Issue #1343768 by JamesOakley, eMPee584: Fixed make update_calculate_project_update_status() work nicely with HEAD releases.

8.0.x
catch 2012-08-07 11:15:47 +01:00
parent 2f2dfda72e
commit a3ee7d2a9e
1 changed files with 4 additions and 1 deletions

View File

@ -593,7 +593,10 @@ function update_calculate_project_update_status(&$project_data, $available) {
// See if this is a higher major version than our target and yet still
// supported. If so, record it as an "Also available" release.
if ($release['version_major'] > $target_major) {
// Note: Some projects have a HEAD release from CVS days, which could
// be one of those being compared. They would not have version_major
// set, so we must call isset first.
if (isset($release['version_major']) && $release['version_major'] > $target_major) {
if (in_array($release['version_major'], $supported_majors)) {
if (!isset($project_data['also'])) {
$project_data['also'] = array();