1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02: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 == '') if ($comments == '')
{ {
$message = LAN_EMAIL_188.' '.SITENAME.' ('.SITEURL.')'; $message = LAN_EMAIL_6.' '.SITENAME.' ('.SITEURL.')';
if (USER == TRUE) if (USER == TRUE)
{ {
$message .= "\n\n".LAN_EMAIL_1." ".USERNAME; $message .= "\n\n".LAN_EMAIL_1." ".USERNAME;
@@ -101,7 +101,7 @@ if (isset($_POST['emailsubmit']))
} }
else else
{ {
$message .= $comments."\n"; // $message .= $comments."\n"; // Added to message later on
} }
$ip = $e107->getip(); $ip = $e107->getip();
$message .= "\n\n".LAN_EMAIL_2." ".$ip."\n\n"; $message .= "\n\n".LAN_EMAIL_2." ".$ip."\n\n";