diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 06:53:26 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 06:53:26 +0000 |
commit | 3604231dd1d7eca9e650b743bdcad811e83d0afb (patch) | |
tree | 69e584e89e5822a0b8aa51514890ed1dda91e405 /includes/update.inc | |
parent | 8894138027b3cdecb834598cb05a3daef7c5b5eb (diff) | |
download | brdo-3604231dd1d7eca9e650b743bdcad811e83d0afb.tar.gz brdo-3604231dd1d7eca9e650b743bdcad811e83d0afb.tar.bz2 |
#521838 follow-up by jrchamp: Clean up drupal_get_schema_versions().
Diffstat (limited to 'includes/update.inc')
-rw-r--r-- | includes/update.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/includes/update.inc b/includes/update.inc index ba83db0db..8157eeabe 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -1041,11 +1041,13 @@ function update_get_update_function_list($starting_updates) { foreach ($starting_updates as $module => $version) { $update_functions[$module] = array(); $updates = drupal_get_schema_versions($module); - $max_version = max($updates); - if ($version <= $max_version) { - foreach ($updates as $update) { - if ($update >= $version) { - $update_functions[$module][$update] = $module . '_update_' . $update; + if ($updates !== FALSE) { + $max_version = max($updates); + if ($version <= $max_version) { + foreach ($updates as $update) { + if ($update >= $version) { + $update_functions[$module][$update] = $module . '_update_' . $update; + } } } } |