summaryrefslogtreecommitdiff
path: root/kontakt.cgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-09-01 12:49:13 +0200
committerJonas Smedegaard <dr@jones.dk>2022-09-01 12:49:13 +0200
commit0a1aef1e7e502df51b9d85b6ac6428f255f58b41 (patch)
treef4ce198d37a4bf276a0d34422297bcd9fe23a1c4 /kontakt.cgi
parentef2b5d7e781726a72afc4cb4efff2cb1a9e24739 (diff)
kontakt: drop silently unless at least of tur/antal/tid supplied
Diffstat (limited to 'kontakt.cgi')
-rwxr-xr-xkontakt.cgi3
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";