diff --git a/core/authentication_api.php b/core/authentication_api.php index 91bb387820..23cb89cd71 100644 --- a/core/authentication_api.php +++ b/core/authentication_api.php @@ -334,7 +334,9 @@ function auth_prepare_username( $p_username ) { switch( config_get( 'login_method' ) ) { case BASIC_AUTH: - $t_username = $_SERVER['REMOTE_USER']; + if( isset( $_SERVER['REMOTE_USER'] ) ) { + $t_username = $_SERVER['REMOTE_USER']; + } break; case HTTP_AUTH: if( !auth_http_is_logout_pending() ) {