diff options
-rw-r--r-- | apps/files_external/3rdparty/Dropbox/OAuth/Curl.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php index cfa33ed0e1a..2f7da1ad253 100644 --- a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php +++ b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php @@ -75,11 +75,13 @@ class Dropbox_OAuth_Curl extends Dropbox_OAuth { //if (is_array($arguments)) // $arguments=http_build_query($arguments); - foreach ($arguments as $key => $value) { - if($value[0] === '@') { - exit(); - } - } + if(is_array($arguments)) { + foreach ($arguments as $key => $value) { + if ($value[0] === '@') { + exit(); + } + } + } curl_setopt($ch, CURLOPT_POSTFIELDS, $arguments); // $httpHeaders['Content-Length']=strlen($arguments); } else { |