Commit 8eca53cb authored by KarenS's avatar KarenS

Fix warning: Creating default object from empty value in...

Fix warning: Creating default object from empty value in template_preprocess_content_display_overview_form() (line 134 of ..theme.inc).
parent 194ccd93
......@@ -7,6 +7,7 @@ Features
- #1008184 by merlinofchaos, bojanz, dereine, yched: Adapt to Views 3 "semantic views" feature (backwards compatible with Views 2)
Bugfixes:
- Fix warning: Creating default object from empty value in template_preprocess_content_display_overview_form() (line 134 of ..theme.inc).
- #1063338 by DeFr: Fix undefined indexes for FIELD_NAME_rendered and others.
- #696620 Make sure non-empty descriptions don't run through translator.
- #863226 by KarenS: make sure we have a function that will return inactive instances when other instances of the same field are still active.
......
......@@ -127,6 +127,7 @@ function template_preprocess_content_display_overview_form(&$vars) {
$element = &$form[$key];
$row = new stdClass();
foreach (element_children($element) as $child) {
if (empty($row->{$child})) $row->{$child} = new stdClass();
if (!array_key_exists('exclude', $element[$child])) {
$row->{$child} = drupal_render($element[$child]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment