]> 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>
Fri, 14 Dec 2012 21:54:21 +0000 (22:54 +0100)
lib/util.php

index 370e5dc13fc98a53831b47ea1015dfc38588c7ce..61b327d0b8c2715976729e9394404f86aa495782 100755 (executable)
@@ -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);