diff --git a/includes/install.inc b/includes/install.inc index 6411f8f..2e64cfd 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -199,6 +199,9 @@ function drupal_install_profile_distribution_name() { else { $profile = drupal_get_profile(); $info = system_get_info('module', $profile); + $info += array( + 'distribution_name' => 'Unknown', + ); return $info['distribution_name']; } } diff --git a/modules/system/system.install b/modules/system/system.install index 800ea12..b90bcd0 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -28,11 +28,20 @@ function system_requirements($phase) { 'weight' => -10, ); - // Display the currently active install profile, if the site - // is not running the default install profile. + // Display the currently active install profile, if the site is not running + // the default install profile. $profile = drupal_get_profile(); if ($profile != 'standard') { - $info = system_get_info('module', $profile); + $modules = module_list(); + if (isset($modules[$profile])) { + $info = system_get_info('module', $profile); + } + else { + $info = array( + 'name' => 'Unknown', + 'version' => 'Unknown', + ); + } $requirements['install_profile'] = array( 'title' => $t('Install profile'), 'value' => $t('%profile_name (%profile-%version)', array(