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).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
FileSize
524 bytes

Here's a one-line patch which simple initializes and empty 'platforms' array.

Neslee Canil Pinto’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.