1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Issue #2178 - Subject validation fix.

This commit is contained in:
Cameron
2016-12-20 15:38:13 -08:00
parent 47f88655f0
commit 3a3848460c

View File

@@ -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";
}