summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2012-08-07 10:15:47 (GMT)
committercatch2012-08-07 10:15:47 (GMT)
commita3ee7d2a9e7b4e6694c5ca5eeb8ccc268aeff058 (patch)
tree470e3f60de5ab720d21d1b5e4e60f3fa9bf0cb89
parent2f2dfda72e8b9c344c9fe765c554446648e54bfa (diff)
Issue #1343768 by JamesOakley, eMPee584: Fixed make update_calculate_project_update_status() work nicely with HEAD releases.
-rw-r--r--core/modules/update/update.compare.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/update/update.compare.inc b/core/modules/update/update.compare.inc
index 5fecf98..2262404 100644
--- a/core/modules/update/update.compare.inc
+++ b/core/modules/update/update.compare.inc
@@ -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();