From 2325fd5105462d8f3403c5aaf382d633f77cd373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 12 Dec 2007 14:54:27 +0000 Subject: #199654 by yched: stale schema cache was used when a schema cache refresh was requested --- includes/common.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 9eb381a6a..fdf7dc2f0 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3193,6 +3193,7 @@ function drupal_get_schema($name = NULL, $rebuild = FALSE) { } // Otherwise, rebuild the schema cache. else { + $schema = array(); // Load the .install files to get hook_schema. module_load_all_includes('install'); @@ -3200,7 +3201,7 @@ function drupal_get_schema($name = NULL, $rebuild = FALSE) { foreach (module_implements('schema') as $module) { $current = module_invoke($module, 'schema'); _drupal_initialize_schema($module, $current); - $schema = array_merge($current, $schema); + $schema = array_merge($schema, $current); } drupal_alter('schema', $schema); -- cgit v1.2.3