]> source.dussan.org Git - nextcloud-server.git/commitdiff
WebDAV-Testing:
authorThomas Mueller <thomas.mueller@tmit.eu>
Wed, 20 Feb 2013 22:11:38 +0000 (23:11 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Wed, 20 Feb 2013 22:11:38 +0000 (23:11 +0100)
- write the exception to the log
- in case curl is missing we should return true as well

lib/util.php

index 636f3127f49973d81c8b9dcb9f8852b64d5133c1..5d3286204e448c6b2b955a72a790b54fac12d6b3 100755 (executable)
@@ -562,7 +562,7 @@ class OC_Util {
         */
        public static function isWebDAVWorking() {
                if (!function_exists('curl_init')) {
-                       return;
+                       return true;
                }
 
                $settings = array(
@@ -578,6 +578,7 @@ class OC_Util {
                } catch(\Sabre_DAV_Exception_NotAuthenticated $e) {
                        $return = true;
                } catch(\Exception $e) {
+                       OC_Log::write('core', 'isWebDAVWorking: NO - Reason: '.$e, OC_Log::WARN);
                        $return = false;
                }