Fix notice about undefined index 'visitorid' in libs/chat.php

This commit is contained in:
Dmitriy Simushev 2013-04-15 11:59:21 +00:00
parent 48d0159a92
commit df38a1860f

View File

@ -657,6 +657,7 @@ function chat_start_for_user($group_id, $visitor_id, $visitor_name, $referrer, $
$_SESSION['threadid'] = $thread->id;
// Check if invitation accept
if (Settings::get('enabletracking')) {
$operator = invitation_accept($_SESSION['visitorid'], $thread->id);
if ($operator) {
$operator = operator_by_id($operator);
@ -669,6 +670,7 @@ function chat_start_for_user($group_id, $visitor_id, $visitor_name, $referrer, $
)
);
}
}
// Send some messages
if ($referrer) {