Commit 3783e630 authored by Dries's avatar Dries
Browse files

- Patch #41914 by Robert: modules page producing duplicate entry database errors.

parent 29a619b5
......@@ -893,7 +893,7 @@ function system_modules() {
// Update the contents of the system table:
if (isset($file->status)) {
db_query("UPDATE {system} SET description = '%s', filename = '%s', bootstrap = %d WHERE name = '%s'", $file->description, $file->filename, $bootstrap, $file->name);
db_query("UPDATE {system} SET description = '%s', name = '%s', bootstrap = %d WHERE filename = '%s'", $file->description, $file->name, $bootstrap, $file->filename);
}
else {
// This is a new module.
......
......@@ -893,7 +893,7 @@ function system_modules() {
// Update the contents of the system table:
if (isset($file->status)) {
db_query("UPDATE {system} SET description = '%s', filename = '%s', bootstrap = %d WHERE name = '%s'", $file->description, $file->filename, $bootstrap, $file->name);
db_query("UPDATE {system} SET description = '%s', name = '%s', bootstrap = %d WHERE filename = '%s'", $file->description, $file->name, $bootstrap, $file->filename);
}
else {
// This is a new module.
......
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