FCLT#85015 JScript runtime error bij starten van de chat in ChatQueueAlive.asp

svn path=/Website/trunk/; revision=66007
This commit is contained in:
Erik Groener
2024-08-23 09:18:39 +00:00
parent 69bbcff4f9
commit cf7beb5cf1

View File

@@ -14,18 +14,17 @@ var JSON_Result = true;
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="./chat.inc" -->
<%
var wantchannelId = getQParam("channelId");
var chat_queue = JSON.parse(Application(chat_queue_name) || "{}");
var result = {hasChatOnline: 0};
if (wantchannelId in chat_queue.wanting)
if (chat_queue.wanting && wantchannelId in chat_queue.wanting)
{
chat_queue.wanting[wantchannelId].alive = new Date().getTime();
Application.Lock();
Application(chat_queue_name) = JSON.stringify(chat_queue);
Application.UnLock();
}
var result = {hasChatOnline: 0};
for (var ch in chat_queue.accepting)
{
result.hasChatOnline++;