summaryrefslogtreecommitdiff
path: root/includes/update.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-07 06:53:26 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-07 06:53:26 +0000
commit3604231dd1d7eca9e650b743bdcad811e83d0afb (patch)
tree69e584e89e5822a0b8aa51514890ed1dda91e405 /includes/update.inc
parent8894138027b3cdecb834598cb05a3daef7c5b5eb (diff)
downloadbrdo-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.inc12
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;
+ }
}
}
}