1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Avoid duplicate message when emailing items - thanks btoovey

This commit is contained in:
e107steved 2010-09-21 18:06:56 +00:00
parent 137497355c
commit 600f1b17b4

View File

@ -89,7 +89,7 @@ if (isset($_POST['emailsubmit']))
if ($comments == '')
{
$message = LAN_EMAIL_188.' '.SITENAME.' ('.SITEURL.')';
$message = LAN_EMAIL_6.' '.SITENAME.' ('.SITEURL.')';
if (USER == TRUE)
{
$message .= "\n\n".LAN_EMAIL_1." ".USERNAME;
@ -101,7 +101,7 @@ if (isset($_POST['emailsubmit']))
}
else
{
$message .= $comments."\n";
// $message .= $comments."\n"; // Added to message later on
}
$ip = $e107->getip();
$message .= "\n\n".LAN_EMAIL_2." ".$ip."\n\n";