summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-14 22:54:21 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-19 18:50:19 +0100
commitf012135992df29d48bb61f7c71315f2e54b1366b (patch)
treeed10a5f6cd3689af66f1c6d31a8b804189fb0fc8 /lib
parent019da9943a594cb2e4c727140dbd87cd103231d8 (diff)
downloadnextcloud-server-f012135992df29d48bb61f7c71315f2e54b1366b.tar.gz
nextcloud-server-f012135992df29d48bb61f7c71315f2e54b1366b.zip
make it more readable as deepdiver suggested
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 8c71d3cb4ed..65d66abc59d 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -678,8 +678,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);