Fix unassigned variable warning.

This commit is contained in:
Andrew McMillan 2011-09-09 22:53:03 +12:00
parent f4be0d071e
commit c6a1451f14

View File

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