diff options
author | James Fellows <james.fellows@finanscapes.com> | 2016-04-24 22:00:50 +0100 |
---|---|---|
committer | James Fellows <james.fellows@finanscapes.com> | 2016-04-24 22:03:19 +0100 |
commit | 70b6cbed440b91114f5c232b806836c50f2459f4 (patch) | |
tree | b4b3ced2df31c874a9640eca46ac563d0998b19a /lib/SparkPost | |
parent | 25efba5e57f3e3c0e529248493d9ba518bfca6a6 (diff) | |
download | php-sparkpost-70b6cbed440b91114f5c232b806836c50f2459f4.zip php-sparkpost-70b6cbed440b91114f5c232b806836c50f2459f4.tar.gz php-sparkpost-70b6cbed440b91114f5c232b806836c50f2459f4.tar.bz2 |
Add explanation to APIResource query param imploding
Diffstat (limited to 'lib/SparkPost')
-rw-r--r-- | lib/SparkPost/APIResource.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/SparkPost/APIResource.php b/lib/SparkPost/APIResource.php index 71c6a26..c4a08ae 100644 --- a/lib/SparkPost/APIResource.php +++ b/lib/SparkPost/APIResource.php @@ -141,6 +141,7 @@ class APIResource { } if( !empty($options['query'])) { + // check each query element - if it's an array, implode it to match the API-accepted format foreach($options['query'] as &$element) { if(is_array($element)) { $element = implode(",", $element); |