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.
If a Social Media Links block or Ctools content type is added to a page with no platform values assigned, I see the following messages:
Notice: Undefined index: platforms in theme_social_media_links_platforms() (line 594 of social_media_links.module).
Warning: Invalid argument supplied for foreach() in theme_social_media_links_platforms() (line 603 of social_media_links.module).
Comment | File | Size | Author |
---|---|---|---|
#2 | social_media_links-fix-notices-empty-platforms-2779531-2.patch | 524 bytes | joelstein |
Comments
Comment #2
joelstein CreditAttribution: joelstein commentedHere's a one-line patch which simple initializes and empty 'platforms' array.
Comment #4
Neslee Canil Pinto