Improvement in send case notes and routing notifications related to bug 14273

This commit is contained in:
Julio Cesar Laura
2014-04-15 13:22:01 -04:00
committed by Erik Amaru Ortiz
parent 2f67b30de9
commit 9995582e9f

View File

@@ -977,7 +977,7 @@ class wsBase
if (trim($aSetup["MESS_ACCOUNT"]) != "") {
$sFrom = "\"" . stripslashes($sFrom) . "\" <" . $aSetup["MESS_ACCOUNT"] . ">";
} else {
if ($aSetup["MESS_ENGINE"] == "MAIL") {
if ($aSetup["MESS_ENGINE"] == "MAIL" && $sFrom != '') {
$sFrom = "\"" . stripslashes($sFrom) . "\"";
} else {
$sFrom = $sFrom . " <info@" . ((isset($_SERVER["HTTP_HOST"]) && $_SERVER["HTTP_HOST"] != "")? $_SERVER["HTTP_HOST"] : "processmaker.com") . ">";