Fix bug with send chat history to email

This commit is contained in:
Dmitriy Simushev 2014-01-17 10:15:49 +00:00
parent 29dd1e8c72
commit 94815071c0

View File

@ -54,9 +54,9 @@ if (get_remote_level($_SERVER['HTTP_USER_AGENT']) == 'old') {
exit;
}
if (verifyparam("act", "/^(invitation)$/", "default") == 'invitation'
&& Settings::get('enabletracking')
) {
$action = verifyparam("act", "/^(invitation|mailthread)$/", "default");
if ($action == 'invitation' && Settings::get('enabletracking')) {
// Check if user invited to chat
$invitation_state = invitation_state($_SESSION['visitorid']);
@ -188,8 +188,7 @@ if (! $thread) {
$page = setup_chatview_for_user($thread);
$pparam = verifyparam( "act", "/^(mailthread)$/", "default");
if( $pparam == "mailthread" ) {
if($action == "mailthread") {
$chat_style->render('mail', $page);
} else {
// Build js application options