Commit 251f72f3 authored by dagomar's avatar dagomar Committed by helmo

Issue #2329131 by dagomar: Fixed Uninstalled block module causes errors.

parent 7b25351e
......@@ -39,7 +39,9 @@ function _provision_platform_drupal_deploy_7_replace($old_url, $new_url) {
':new' => 'sites/' . $new_url,
);
db_query("UPDATE {block_custom} SET body = REPLACE(body, :old, :new)", $replace_patterns);
if(db_table_exists('block_custom')) {
db_query("UPDATE {block_custom} SET body = REPLACE(body, :old, :new)", $replace_patterns);
}
db_query("UPDATE {system} SET filename = REPLACE(filename, :old, :new)", $replace_patterns);
$field_map = field_info_field_map();
......
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