Update cal.php
This commit is contained in:
parent
0a96f7c916
commit
d484bf8309
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ if(!defined("BAIKAL_CAL_ENABLED") || BAIKAL_CAL_ENABLED !== TRUE) {
|
|||
}
|
||||
|
||||
# Backends
|
||||
if( BAIKAL_DAV_AUTH_TYPE == "Basic" || preg_match('/Windows-Phone-WebDAV-Client/i', $_SERVER['HTTP_USER_AGENT']) )
|
||||
if( BAIKAL_DAV_AUTH_TYPE == "Basic" || (array_key_exists('HTTP_USER_AGENT', $_SERVER) && preg_match('/Windows-Phone-WebDAV-Client/i', $_SERVER['HTTP_USER_AGENT'])) )
|
||||
$authBackend = new \Baikal\Core\PDOBasicAuth($GLOBALS["DB"]->getPDO(), BAIKAL_AUTH_REALM);
|
||||
else
|
||||
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($GLOBALS["DB"]->getPDO());
|
||||
|
|
Loading…
Add table
Reference in a new issue