mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-01 18:48:17 +00:00
Fix unassigned variable warning.
This commit is contained in:
parent
f4be0d071e
commit
c6a1451f14
@ -126,7 +126,7 @@ class CalDAVRequest
|
||||
}
|
||||
if ( $this->method == 'PROPFIND' || $this->method == 'REPORT' ) {
|
||||
if ( !preg_match( '{^(text|application)/xml$}', $this->content_type ) ) {
|
||||
dbg_error_log( "LOG request", 'Request is "%s" but client set content-type to "%s". Assuming they meant XML!',
|
||||
@dbg_error_log( "LOG request", 'Request is "%s" but client set content-type to "%s". Assuming they meant XML!',
|
||||
$request->method, $this->content_type );
|
||||
$this->content_type = 'text/xml';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user