From 4758c8cd285b6c706c55a2d097f2003f142f4e66 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 9 Dec 2005 16:14:26 +0000 Subject: - Patch #40518 by drumm: upgrade system fixes. --- includes/install.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/install.inc b/includes/install.inc index 472cc9407..c62039091 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -29,8 +29,11 @@ foreach (module_list() as $module) { function drupal_get_schema_versions($module) { $functions = get_defined_functions(); foreach ($functions['user'] as $function) { - if (strpos($function, $module .'_update') === 0) { - $updates[] = (int) substr($function, strlen($module .'_update_')); + if (strpos($function, $module .'_update_') === 0) { + $version = substr($function, strlen($module .'_update_')); + if (is_numeric($version)) { + $updates[] = $version; + } } } if (count($updates) == 0) { -- cgit v1.2.3