1
0

php 8 compat fixes for commenting in frontend

This commit is contained in:
onli
2021-05-13 15:03:23 +02:00
parent d28b15381c
commit cbca20a535
3 changed files with 12 additions and 9 deletions

@ -557,7 +557,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
}
}
if ($serendipity['dumpMail']) {
if ($serendipity['dumpMail'] ?? false) {
$fp = fopen($serendipity['serendipityPath'] . '/templates_c/mail.log', 'a');
fwrite($fp, date('Y-m-d H:i') . "\n" . print_r($maildata, true));
fclose($fp);