diff --git a/includes/module.inc b/includes/module.inc index 448ff56b9e7..20ea806ed93 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 2cf868bec85..a0394ce74b0 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));