mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-04-07 07:03:32 +03:00
Pass json encoded vars array into parameters
This commit is contained in:
parent
4a65f16f63
commit
cc0809f9bc
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,7 @@ class Member extends HttpApi
|
|||
case 'vars':
|
||||
if (is_array($value)) {
|
||||
$value = json_encode($value);
|
||||
$parameters[$field] = $value;
|
||||
}
|
||||
// We should assert that "vars"'s $value is a string.
|
||||
// no break
|
||||
|
@ -199,6 +200,7 @@ class Member extends HttpApi
|
|||
case 'vars':
|
||||
if (is_array($value)) {
|
||||
$value = json_encode($value);
|
||||
$parameters[$field] = $value;
|
||||
}
|
||||
// We should assert that "vars"'s $value is a string.
|
||||
// no break
|
||||
|
|
Loading…
Add table
Reference in a new issue