Commit 27c1b3d1 authored by Philip Müller's avatar Philip Müller

[site][content] update contact script

parent 0b54d133
Pipeline #6 canceled with stages
......@@ -37,13 +37,13 @@ try
// If the field exists in the $fields array, include it in the email
if (isset($fields[$key])) {
$emailText .= "$fields[$key]: $value\n";
if ( $fields[$key] = "Email" ) {
if ( $fields[$key] == "Email" ) {
$fromEmail = $value;
}
if ( $fields[$key] = "Name" ) {
if ( $fields[$key] == "Name" ) {
$fromName = $value;
}
if ( $fields[$key] = "Surname" ) {
if ( $fields[$key] == "Surname" ) {
$fromSurname = $value;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment