mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-18 05:43:15 +03:00
Pass json encoded vars array into parameters
This commit is contained in:
parent
4a65f16f63
commit
cc0809f9bc
@ -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…
x
Reference in New Issue
Block a user