summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";