aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-08 15:23:26 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-08 15:23:26 +0100
commitea42014ba4e7ad44a290f968b1a1439f78c1117c (patch)
treed3cdfe63d5d98a5bb1906e9c3206c25f0fd60e70 /lib/util.php
parent5788d36c8d1e9869d8a645293805e3b0265ea238 (diff)
downloadnextcloud-server-ea42014ba4e7ad44a290f968b1a1439f78c1117c.tar.gz
nextcloud-server-ea42014ba4e7ad44a290f968b1a1439f78c1117c.zip
in case curl is not present we cannot test
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 5f796e7565f..7e183041d54 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -528,6 +528,10 @@ class OC_Util {
*
*/
public static function isWebDAVWorking() {
+ if (!function_exists('curl_init')) {
+ return;
+ }
+
$settings = array(
'baseUri' => OC_Helper::linkToRemote('webdav'),
);