summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/module.inc1
-rw-r--r--modules/system/system.admin.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 448ff56b9..20ea806ed 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -95,6 +95,7 @@ function module_rebuild_cache() {
'package' => 'Other',
'version' => NULL,
'php' => DRUPAL_MINIMUM_PHP,
+ 'files' => array(),
);
foreach ($files as $filename => $file) {
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 2cf868bec..a0394ce74 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -742,7 +742,7 @@ function _system_modules_build_row($info, $extra) {
$status_long = '';
// Check the core compatibility.
- if (!isset($info['core']) || $info['core'] != DRUPAL_CORE_COMPATIBILITY) {
+ if (!isset($info['core']) || $info['core'] != DRUPAL_CORE_COMPATIBILITY || empty($info['files'])) {
$compatible = FALSE;
$status_short .= t('Incompatible with this version of Drupal core. ');
$status_long .= t('This version is incompatible with the !core_version version of Drupal core. ', array('!core_version' => VERSION));