The tid field in the simplenews_newsletters is an int. The code however saves a searialzed array (to allow multiple newsletters).

It's never a problem because the value is never needed from the database, the value is set and immediately used.

As I am writing a module that allows the newsletter to be sent at a later time, I do need the value from the database.

Comments

miro_dietiker’s picture

Status: Active » Postponed (maintainer needs more info)

Please refer to a codeline or even lineS.
If you're talking about the table simplenews_newsletters being int, it will never be able to store something serialized as it doesn't support anything else than numbers to be stored.

So please, provide some more context and a fully reproduceable story. Else we won't be able to help you.

maartendeblock’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

It looks like someone hacked the module here. I can't find the code in the original download.