Commit 5eefb7ab authored by Dries's avatar Dries

- 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() {
drupal_alter('system_info', $modules[$key]->info, $modules[$key], $type);
}
// The install profile is required.
$modules[$profile]->info['required'] = TRUE;
// The install profile is required, if it's a valid module.
if (isset($modules[$profile])) {
$modules[$profile]->info['required'] = TRUE;
}
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