It is possible that there may have been records in the {metatag} table from really early releases of the codebase, so add an update script to remove anything that matches 'a:0:{}'.

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new714 bytes

This patches NULL, '' and 'a:0:{}' values.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

damienmckenna’s picture

Status: Fixed » Needs review
StatusFileSize
new622 bytes

A small follow-up - the SQL query handling system in Drupal removes the "{}" characters so it needs to be inserted via a query argument.

damienmckenna’s picture

Status: Needs review » Fixed

Committed, so now it will actually remove records with an empty array.

Status: Fixed » Closed (fixed)

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