]> source.dussan.org Git - nextcloud-server.git/commitdiff
make it more readable as deepdiver suggested
authorFrank Karlitschek <frank@owncloud.org>
Fri, 14 Dec 2012 21:54:21 +0000 (22:54 +0100)
committerFrank Karlitschek <frank@owncloud.org>
Wed, 19 Dec 2012 17:50:19 +0000 (18:50 +0100)
lib/util.php

index 8c71d3cb4ed7bab6c7cce024bc0f7f8adac52965..65d66abc59dbbc96c527e6f2395f69cb0e7ade8c 100755 (executable)
@@ -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);