WebDAV-Testing:
- write the exception to the log - in case curl is missing we should return true as well
This commit is contained in:
parent
d2f9c3e8e7
commit
7b7994b56b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue