mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Fix notice about undefined index 'visitorid' in libs/chat.php
This commit is contained in:
parent
48d0159a92
commit
df38a1860f
@ -657,6 +657,7 @@ 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
|
||||||
|
if (Settings::get('enabletracking')) {
|
||||||
$operator = invitation_accept($_SESSION['visitorid'], $thread->id);
|
$operator = invitation_accept($_SESSION['visitorid'], $thread->id);
|
||||||
if ($operator) {
|
if ($operator) {
|
||||||
$operator = operator_by_id($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
|
// Send some messages
|
||||||
if ($referrer) {
|
if ($referrer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user