diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-09-01 12:49:13 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2022-09-01 12:49:13 +0200 |
commit | 0a1aef1e7e502df51b9d85b6ac6428f255f58b41 (patch) | |
tree | f4ce198d37a4bf276a0d34422297bcd9fe23a1c4 /kontakt.cgi | |
parent | ef2b5d7e781726a72afc4cb4efff2cb1a9e24739 (diff) |
kontakt: drop silently unless at least of tur/antal/tid supplied
Diffstat (limited to 'kontakt.cgi')
-rwxr-xr-x | kontakt.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kontakt.cgi b/kontakt.cgi index f0fd79c..a860a9d 100755 --- a/kontakt.cgi +++ b/kontakt.cgi @@ -106,11 +106,12 @@ if ($form->submitted) { # Abuse subject to add additional headers # $mail_subject .= "\n" . 'Content-Type: text/plain; charset="ISO-8859-1";'; # $mail_subject .= "\n" . 'Content-Transfer-Encoding: 8bit'; + my $field = $form->fields; $form->mailresults( to => $mail_to, from => $mail_from, subject => "$mail_subject", - ); + ) unless ( !!$field->{tur} + !!$field->{antal} + !!$field->{tid} < 2 ); if ($confirm) { $infostring .= "\n<P>Følgende informationer er blevet sendt:"; $form->{opt}{messages}{form_confirm_text} = "$infostring"; |