Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The latest CVS snapshot displays the following errors via Drush any time the the site cache is cleared:
WD php: Notice: Undefined index: group_carousel in _fieldgroup_get_tree() (line 311 of fieldgroup.module).
WD php: Notice: Undefined index: group_banner_data in _fieldgroup_get_tree() (line 311 of fieldgroup.module).
That corresponds to the following IF statement:
if ($children[$type_name][$child_group_name]) {
$tree = array_merge($tree, _fieldgroup_get_tree($type_name, $child_group_name, $depth, $max_depth));
}
This should be rewritten as:
if (!empty($children[$type_name][$child_group_name])) {
$tree = array_merge($tree, _fieldgroup_get_tree($type_name, $child_group_name, $depth, $max_depth));
}
Comment | File | Size | Author |
---|---|---|---|
#1 | cck-n1053566.patch | 907 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaHere's a patch that implements the suggested change.
Comment #2
KarenS CreditAttribution: KarenS commentedFixed, thanks :)