summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-12 03:03:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-12 03:03:41 +0000
commitdc5991ce9ccc238780dccf978d9143f3a7fea1b8 (patch)
tree304328becced2af66d9372c942166cc398c3d55c /modules
parent738367593558ba170cb6d65dda35ec9230654bc3 (diff)
downloadbrdo-dc5991ce9ccc238780dccf978d9143f3a7fea1b8.tar.gz
brdo-dc5991ce9ccc238780dccf978d9143f3a7fea1b8.tar.bz2
- Patch #938560 by Damien Tournoud: fixed {system} records of installed modules are removed.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 57c3c7240..7466480c4 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2184,9 +2184,11 @@ function system_update_files_database(&$files, $type) {
}
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')
->condition($delete)
+ ->condition('schema_version', -1)
->execute();
}