O erro é na linha em verde e negrito:
function _sendEmailMSG($to,$from,$sub,$msg,$addPrefix=FALSE) { //BB: add html
global $_SERVER,$ueConfig,$mosConfig_sitename,$mosConfig_live_site;
if($addPrefix) {
$uname=getNameFormat($from->name,$from->username,$ueConfig);
$premessage = sprintf(_UE_SENDEMAILNOTICE, $uname, cb_html_entity_decode_all($mosConfig_sitename), $mosConfig_live_site); if (isset($ueConfig) && $ueConfig == 2) {
$premessage .= sprintf(_UE_SENDEMAILNOTICE_REPLYTO, $uname, $from->email);
}
$premessage .= sprintf(_UE_SENDEMAILNOTICE_DISCLAIMER, cb_html_entity_decode_all($mosConfig_sitename));
$premessage .= sprintf(_UE_SENDEMAILNOTICE_MESSAGEHEADER, $uname);
$msg=$premessage.$msg;
$from->name = $uname . " @ ". cb_html_entity_decode_all($mosConfig_sitename); // $ueConfig
}