Skip to content
Snippets Groups Projects
Commit b7e81dbc authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#48025, fix for installing new contrib modules, patch by hunmonk and grugnog

parent 76a104d4
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -920,7 +920,7 @@ function system_modules() {
}
// Update the contents of the system table:
if (isset($file->status) || $file->old_filename != $file->filename) {
if (isset($file->status) || (isset($file->old_filename) && $file->old_filename != $file->filename)) {
db_query("UPDATE {system} SET description = '%s', name = '%s', bootstrap = %d, filename = '%s' WHERE filename = '%s'", $file->description, $file->name, $bootstrap, $file->filename, $file->old_filename);
}
else {
......
......@@ -920,7 +920,7 @@ function system_modules() {
}
// Update the contents of the system table:
if (isset($file->status) || $file->old_filename != $file->filename) {
if (isset($file->status) || (isset($file->old_filename) && $file->old_filename != $file->filename)) {
db_query("UPDATE {system} SET description = '%s', name = '%s', bootstrap = %d, filename = '%s' WHERE filename = '%s'", $file->description, $file->name, $bootstrap, $file->filename, $file->old_filename);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment