mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
if mergefields is false or null, make it an array
This commit is contained in:
parent
ff53ff98d8
commit
f7da7d05a1
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class MailActions extends Actions
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$mcListId = $_POST['listId'];
|
$mcListId = $_POST['listId'];
|
||||||
$mergeFields = isset($_POST['mergeFields']) ? unserialize($_POST['mergeFields']) : [];
|
$mergeFields = isset($_POST['mergeFields']) ? (unserialize($_POST['mergeFields']) ?: []) : [];
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
static::subscribeToMailchimp($email, $mcListId, $mergeFields);
|
static::subscribeToMailchimp($email, $mcListId, $mergeFields);
|
||||||
|
|
Loading…
Add table
Reference in a new issue