Fix PHP Notice: Undefined variable: body in /usr/share/davical/inc/iSchedule.php on line 435

This commit is contained in:
ruliane 2022-10-22 11:41:05 +00:00 committed by Andrew Ruthven
parent a9d438dc0f
commit 19ec6fd2fb

View File

@ -434,7 +434,7 @@ class iSchedule
$headers['Content-Type'] = 'text/calendar; component=' . $component ;
if ( $method )
$headers['Content-Type'] .= '; method=' . $method;
$headers['DKIM-Signature'] = $this->signDKIM ( $headers, $body );
$headers['DKIM-Signature'] = $this->signDKIM ( $headers, $data );
if ( $headers['DKIM-Signature'] == false )
return false;
$request_headers = array ( );