Skip to content

Commit 55506c4

Browse files
author
php-curl-class
committed
Merge pull request php-curl-class#7 from DaniSancas/master
Fixes issue php-curl-class#6 "Integer params inside data array aren't taken in account"
2 parents 5ead0ee + 7deb2e0 commit 55506c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Curl.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function http_build_multi_query($data, $key=NULL) {
8787
$is_array_assoc = is_array_assoc($data);
8888

8989
foreach ($data as $k => $value) {
90-
if (is_string($value)) {
90+
if (is_string($value) || is_int($value)) {
9191
$brackets = $is_array_assoc ? '[' . $k . ']' : '[]';
9292
$query[] = urlencode(is_null($key) ? $k : $key . $brackets) . '=' . rawurlencode($value);
9393
}

0 commit comments

Comments
 (0)