It needs to go to root namespace

This commit is contained in:
scottmotte
2014-04-04 12:24:36 -07:00
parent 9ee16508d2
commit 3951a37c2a

View File

@@ -141,7 +141,7 @@ class Unirest
foreach ($arrays AS $key => $value) { foreach ($arrays AS $key => $value) {
$k = isset($prefix) ? $prefix . '[' . $key . ']' : $key; $k = isset($prefix) ? $prefix . '[' . $key . ']' : $key;
if (!$value instanceof CURLFile AND (is_array($value) OR is_object($value))) { if (!$value instanceof \CURLFile AND (is_array($value) OR is_object($value))) {
Unirest::http_build_query_for_curl($value, $new, $k); Unirest::http_build_query_for_curl($value, $new, $k);
} else { } else {
$new[$k] = $value; $new[$k] = $value;