summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 19:01:42 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 19:01:42 +0000
commitb7e81dbc39881c174988d28fbc18b0460367d936 (patch)
tree99d4b0ecdf30bccbb12bf6fc6854b1643ba0318f /modules/system
parent76a104d4722ef4d160151b799fc3634f87ec4a20 (diff)
downloadbrdo-b7e81dbc39881c174988d28fbc18b0460367d936.tar.gz
brdo-b7e81dbc39881c174988d28fbc18b0460367d936.tar.bz2
#48025, fix for installing new contrib modules, patch by hunmonk and grugnog
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index b9050c4ee..ad30b5f5f 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -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 {