Commit dc5991ce authored by Dries's avatar Dries

- Patch #938560 by Damien Tournoud: fixed {system} records of installed modules are removed.

parent 73836759
...@@ -2184,9 +2184,11 @@ function system_update_files_database(&$files, $type) { ...@@ -2184,9 +2184,11 @@ function system_update_files_database(&$files, $type) {
} }
if (count($delete) > 0) { if (count($delete) > 0) {
// Delete all missing files from the system table // Delete all missing files from the system table, but only if the plugin
// has never been installed.
db_delete('system') db_delete('system')
->condition($delete) ->condition($delete)
->condition('schema_version', -1)
->execute(); ->execute();
} }
......
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