From 6f370f0f4a590f47ac80cc9dfd5b223f2b601cec Mon Sep 17 00:00:00 2001 From: Franck Deroche Date: Wed, 2 May 2012 14:11:13 +0200 Subject: [PATCH] Issue #1167004 followup: clean up the behavior for elements containing empty arrays --- content.module | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/content.module b/content.module index 7a6a6ec..f3a1ca2 100644 --- a/content.module +++ b/content.module @@ -2847,7 +2847,7 @@ function &content_get_nested_elements(&$form, $field_name) { $results[$key][] = &$current[$key]; } // Else push the element in our search queue. - elseif (is_array($current[$key])) { + else if (is_array($current[$key]) && !empty($current[$key])) { $queue[] = &$current[$key]; } } -- 1.7.8.5