summaryrefslogtreecommitdiff
path: root/modules/locale/locale.field.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale/locale.field.inc')
-rw-r--r--modules/locale/locale.field.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.field.inc b/modules/locale/locale.field.inc
index 0461f5082..b304ce329 100644
--- a/modules/locale/locale.field.inc
+++ b/modules/locale/locale.field.inc
@@ -52,7 +52,7 @@ function locale_field_fallback_view(&$output, $context) {
// If the items array is empty then we have a missing field translation.
// @todo: Verify this assumption.
- if (empty($output[$field_name]['items'])) {
+ if (isset($output[$field_name]) && empty($output[$field_name]['items'])) {
if (!isset($fallback_candidates)) {
require_once DRUPAL_ROOT . '/includes/language.inc';
$fallback_candidates = language_fallback_get_candidates();