FCLT#85015 JScript runtime error bij starten van de chat in ChatQueueAlive.asp
svn path=/Website/trunk/; revision=66007
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user