fixed from error

This commit is contained in:
Torsten Schulz
2023-12-28 17:11:30 +01:00
parent 5025e39f6d
commit 19f31d83ab
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@@ -104,6 +104,8 @@ class Membership extends Renderer {
} }
protected function sendEmail(array $formData): void { protected function sendEmail(array $formData): void {
error_reporting(E_ALL);
ini_set('display_errors', 1);
$noForm = count($this->errors) === 0; $noForm = count($this->errors) === 0;
if ($noForm) { if ($noForm) {
$data = ['Vorname' => $formData['firstname'], 'Nachname' => $formData['lastname'], 'Strasse' => $formData['street'], 'Ort' => $formData['zip'] . ' ' . $formData['town'], $data = ['Vorname' => $formData['firstname'], 'Nachname' => $formData['lastname'], 'Strasse' => $formData['street'], 'Ort' => $formData['zip'] . ' ' . $formData['town'],
@@ -122,7 +124,6 @@ class Membership extends Renderer {
$message .= $field . ': ' . $value . "\n"; $message .= $field . ': ' . $value . "\n";
} }
$attachment = [ $attachment = [
'Mitgliedsantrag.pdf' => ['content' => $this->createPdf($formData), 'type' => 'application/pdf']
]; ];
$this->sendMail($mail, 'Mitgliedsantrag', $message, '', $attachment); $this->sendMail($mail, 'Mitgliedsantrag', $message, '', $attachment);
$this->templateName = 'membership_success'; $this->templateName = 'membership_success';