WebDAV-Testing:

- write the exception to the log
- in case curl is missing we should return true as well
This commit is contained in:
Thomas Mueller 2013-02-20 23:11:38 +01:00
parent d2f9c3e8e7
commit 7b7994b56b

View File

@ -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;
}