diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-12-14 22:54:21 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-12-14 22:54:21 +0100 |
commit | 2a55beab74e6ddaac80213565121c23b5357a229 (patch) | |
tree | 8085e15b6db3ac976095a0e65a22811ccab3f96d | |
parent | b6b4c4c9201af1539c07f611f3e24ec0de5e0667 (diff) | |
download | nextcloud-server-2a55beab74e6ddaac80213565121c23b5357a229.tar.gz nextcloud-server-2a55beab74e6ddaac80213565121c23b5357a229.zip |
make it more readable as deepdiver suggested
-rwxr-xr-x | lib/util.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php index 370e5dc13fc..61b327d0b8c 100755 --- a/lib/util.php +++ b/lib/util.php @@ -696,8 +696,12 @@ class OC_Util { curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler"); - if(OC_Config::getValue('curlproxy','')=='') curl_setopt($curl, CURLOPT_PROXY, OC_Config::getValue('curlproxy')); - if(OC_Config::getValue('curlproxyuserpwd','')=='') curl_setopt($curl, CURLOPT_PROXYUSERPWD, OC_Config::getValue('curlproxyuserpwd')); + if(OC_Config::getValue('curlproxy','')=='') { + curl_setopt($curl, CURLOPT_PROXY, OC_Config::getValue('curlproxy')); + } + if(OC_Config::getValue('curlproxyuserpwd','')=='') { + curl_setopt($curl, CURLOPT_PROXYUSERPWD, OC_Config::getValue('curlproxyuserpwd')); + } $data = curl_exec($curl); curl_close($curl); |