summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-10 07:36:31 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-10 07:36:31 +0200
commite5ff9f0b6b3171c4ed9baef4a62a7c7c1ad9301a (patch)
treeaf0e51a2df50766c8592edcab1411b116cdd7296
parentfe92dd7381cd8aa92e8b17dd999e3e452f35ecbb (diff)
parenta88df5c6ec0a3d031a6a85208ca37050941ac6a6 (diff)
downloadnextcloud-server-e5ff9f0b6b3171c4ed9baef4a62a7c7c1ad9301a.tar.gz
nextcloud-server-e5ff9f0b6b3171c4ed9baef4a62a7c7c1ad9301a.zip
Merge pull request #16682 from owncloud/stable7-check-for-arry
Check if array
-rw-r--r--apps/files_external/3rdparty/Dropbox/OAuth/Curl.php12
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 {