summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-20 07:07:59 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-20 07:07:59 +0000
commitb47ecd8ad7a8a961b5d06139b2fa3db62b7f09ad (patch)
tree4697a0e6c0e7e01a51acb1fde8164f3f36f2f427 /update.php
parent53f53b6db5949c7d8e6b57253987a4eddf7a26ca (diff)
downloadbrdo-b47ecd8ad7a8a961b5d06139b2fa3db62b7f09ad.tar.gz
brdo-b47ecd8ad7a8a961b5d06139b2fa3db62b7f09ad.tar.bz2
#320009 by Dave Reid: Catch D7 modules without a files[] line in their .info files.
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;