Skip to content
Snippets Groups Projects
Commit 7b7994b5 authored by Thomas Müller's avatar Thomas Müller
Browse files

WebDAV-Testing:

- write the exception to the log
- in case curl is missing we should return true as well
parent d2f9c3e8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment