From 3a3848460cce2d8629a06e35c6a34d48d1453ce5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 20 Dec 2016 15:38:13 -0800 Subject: [PATCH] Issue #2178 - Subject validation fix. --- contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }