Commit 5eefb7ab authored by Dries's avatar Dries
Browse files

- Patch #826054 by grendzy: upgrade from Drupal 6.17 fails with integrity...

- Patch #826054 by grendzy: upgrade from Drupal 6.17 fails with integrity constraint violation: 1048 Column 'filename' cannot be null.
parent 2e86ad31
...@@ -2269,8 +2269,10 @@ function _system_rebuild_module_data() { ...@@ -2269,8 +2269,10 @@ function _system_rebuild_module_data() {
drupal_alter('system_info', $modules[$key]->info, $modules[$key], $type); drupal_alter('system_info', $modules[$key]->info, $modules[$key], $type);
} }
// The install profile is required. // The install profile is required, if it's a valid module.
$modules[$profile]->info['required'] = TRUE; if (isset($modules[$profile])) {
$modules[$profile]->info['required'] = TRUE;
}
return $modules; return $modules;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment