The code that reduces the array to its first item will fail to do so if the first item is blank. One possible reason this might happen is if you have an entry like [token1],[token2] and sometimes [token1] doesn't get populated.

This is coming from the code that removes blank items not reindexing the array, so the first item might not be at [0] in the code as written.

A patch will be added shortly that reindexes the array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kpaxman created an issue. See original summary.

kpaxman’s picture

kpaxman’s picture

Status: Active » Needs review

  • DamienMcKenna committed 2d0356b on 7.x-1.x authored by kpaxman
    Issue #2853251 by kpaxman: Code to use only first item doesn't work if...
DamienMcKenna’s picture

Status: Needs review » Fixed
Parent issue: » #2891956: Plan for Metatag 7.x-1.23 release

Committed. Thanks.

Status: Fixed » Closed (fixed)

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