pgsql From: Damien Tournoud --- includes/bootstrap.inc | 2 +- includes/common.inc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git includes/bootstrap.inc includes/bootstrap.inc index 996dda3..a74c582 100644 --- includes/bootstrap.inc +++ includes/bootstrap.inc @@ -1368,7 +1368,7 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) { drupal_alter('schema', $schema); } - if (drupal_get_bootstrap_phase() == DRUPAL_BOOTSTRAP_FULL) { + if ($schema && (drupal_get_bootstrap_phase() == DRUPAL_BOOTSTRAP_FULL)) { cache_set('schema', $schema); } } diff --git includes/common.inc includes/common.inc index cd4966a..f5566bb 100644 --- includes/common.inc +++ includes/common.inc @@ -947,7 +947,12 @@ function t($string, $args = array(), $langcode = NULL) { static $custom_strings; if (!isset($langcode)) { - $langcode = $language->language; + if (isset($language->language)) { + $langcode = $language->language; + } + else { + $langcode = 'en'; + } } // First, check for an array of customized strings. If present, use the array