mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Fix notice about undefined index 'visitorid' in libs/chat.php
This commit is contained in:
parent
48d0159a92
commit
df38a1860f
@ -657,17 +657,19 @@ function chat_start_for_user($group_id, $visitor_id, $visitor_name, $referrer, $
|
|||||||
$_SESSION['threadid'] = $thread->id;
|
$_SESSION['threadid'] = $thread->id;
|
||||||
|
|
||||||
// Check if invitation accept
|
// Check if invitation accept
|
||||||
$operator = invitation_accept($_SESSION['visitorid'], $thread->id);
|
if (Settings::get('enabletracking')) {
|
||||||
if ($operator) {
|
$operator = invitation_accept($_SESSION['visitorid'], $thread->id);
|
||||||
$operator = operator_by_id($operator);
|
if ($operator) {
|
||||||
$operator_name = get_operator_name($operator);
|
$operator = operator_by_id($operator);
|
||||||
$thread->postMessage(
|
$operator_name = get_operator_name($operator);
|
||||||
Thread::KIND_FOR_AGENT,
|
$thread->postMessage(
|
||||||
getstring2(
|
Thread::KIND_FOR_AGENT,
|
||||||
'chat.visitor.invitation.accepted',
|
getstring2(
|
||||||
array($operator_name)
|
'chat.visitor.invitation.accepted',
|
||||||
)
|
array($operator_name)
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send some messages
|
// Send some messages
|
||||||
|
Loading…
Reference in New Issue
Block a user