field_group-php7-2661484-2.patch 736 B

12345678910111213
  1. diff --git a/field_group.module b/field_group.module
  2. index 412825f..4061519 100644
  3. --- a/field_group.module
  4. +++ b/field_group.module
  5. @@ -2258,7 +2258,7 @@ function field_group_field_group_to_hook_code($data, $module) {
  6. $code .= " \${$export['identifier']}s = array();\n\n";
  7. foreach ($objects as $object) {
  8. $code .= ctools_export_object('field_group', $object, ' ');
  9. - $code .= " \${$export['identifier']}s['" . check_plain($object->$export['key']) . "'] = \${$export['identifier']};\n\n";
  10. + $code .= " \${$export['identifier']}s['" . check_plain($object->{$export['key']}) . "'] = \${$export['identifier']};\n\n";
  11. if (!empty($object->data['label'])) {
  12. $translatables[] = $object->data['label'];
  13. }