From b47ecd8ad7a8a961b5d06139b2fa3db62b7f09ad Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 20 Nov 2008 07:07:59 +0000 Subject: #320009 by Dave Reid: Catch D7 modules without a files[] line in their .info files. --- update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'update.php') 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; -- cgit v1.2.3