mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-30 18:37:12 +00:00
Fix warning when using basic authentication fallback.
This commit is contained in:
parent
499313c9ca
commit
7a39329472
@ -121,7 +121,7 @@ class DAViCalSession extends Session
|
||||
/**
|
||||
* We allow basic auth to apply also, if present, though we check everything else first...
|
||||
*/
|
||||
if ( !$this->logged_in && $_SERVER['PHP_AUTH_USER'] != "" && $_SERVER['PHP_AUTH_PW'] != "" && ! $_COOKIE['NoAutoLogin'] ) {
|
||||
if ( isset($_SERVER['PHP_AUTH_USER']) && !$this->logged_in && $_SERVER['PHP_AUTH_USER'] != "" && $_SERVER['PHP_AUTH_PW'] != "" && ! $_COOKIE['NoAutoLogin'] ) {
|
||||
if ( $this->Login($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],true)) {
|
||||
setcookie('NoAutoLogin',1,0);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user