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.
This lines invoke PHP notice about undefined array offset
// Some old field data may have $item['#item']['attributes']['rel'] as an array, which will cause errors:
if (is_array($item['#item']['attributes']['rel'])) {
unset($item['#item']['attributes']['rel']);
}
Comment | File | Size | Author |
---|---|---|---|
fix-php-notice.patch | 591 bytes | IRuslan | |
Comments
Comment #1
wojtha CreditAttribution: wojtha commentedDuplicate of #830432: notice: Undefined variable: element in link.module on line 445
Comment #2
dqdthx wojtha. sorry 4 the late reply ...