Commit b7e81dbc authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

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

parent 76a104d4
......@@ -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 {
......
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