diff --git a/contact.php b/contact.php index 00063b86b..757202ce4 100644 --- a/contact.php +++ b/contact.php @@ -102,7 +102,7 @@ if(isset($_POST['send-contactus'])) } // Check subject line. - if(strlen(trim($subject)) < 2) + if(isset($_POST['subject']) && strlen(trim($subject)) < 2) { $error .= LANCONTACT_13."\\n"; }