mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Avoid duplicate message when emailing items - thanks btoovey
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user