summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rw-r--r--update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update.php b/update.php
index d5917d3b3..937e98f32 100644
--- a/update.php
+++ b/update.php
@@ -512,7 +512,8 @@ function update_check_incompatibility($name, $type = 'module') {
if (!isset($file)
|| !isset($file->info['core'])
|| $file->info['core'] != DRUPAL_CORE_COMPATIBILITY
- || version_compare(phpversion(), $file->info['php']) < 0) {
+ || version_compare(phpversion(), $file->info['php']) < 0
+ || ($type == 'module' && empty($file->info['files']))) {
return TRUE;
}
return FALSE;