diff options
-rw-r--r-- | modules/update/update.compare.inc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/update/update.compare.inc b/modules/update/update.compare.inc index 5c7c914f9..a0cf66c3f 100644 --- a/modules/update/update.compare.inc +++ b/modules/update/update.compare.inc @@ -390,13 +390,14 @@ function update_calculate_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 && - in_array($release['version_major'], $supported_majors)) { - if (!isset($available[$project]['also'])) { - $available[$project]['also'] = array(); - } - if (!isset($available[$project]['also'][$release['version_major']])) { - $available[$project]['also'][$release['version_major']] = $version; + if ($release['version_major'] > $target_major) { + if (in_array($release['version_major'], $supported_majors)) { + if (!isset($available[$project]['also'])) { + $available[$project]['also'] = array(); + } + if (!isset($available[$project]['also'][$release['version_major']])) { + $available[$project]['also'][$release['version_major']] = $version; + } } // Otherwise, this release can't matter to us, since it's neither // from the release series we're currently using nor the recommended |