Commit 4cc6afff authored by webchick's avatar webchick

Issue #1850352 by tim.plunkett, xjm: Fixed config_import_invoke_owner() should...

Issue #1850352 by tim.plunkett, xjm: Fixed config_import_invoke_owner() should check whether a module exists before invoking its hooks.
parent cf297948
......@@ -256,7 +256,7 @@ function config_import_invoke_owner(array $config_changes, StorageInterface $sou
// Check whether the module implements hook_config_import() and ask it to
// handle the configuration change.
$handled_by_module = FALSE;
if (module_hook($module, 'config_import_' . $op)) {
if (module_exists($module) && module_hook($module, 'config_import_' . $op)) {
$old_config = new Config($name, $target_storage);
$old_config->load();
......
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