From 2a656a58d513c22fdfa7a1062f8d977eee7fddf3 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 28 Jan 2013 11:30:24 +0000 Subject: [PATCH] Fix bug with redicection user to a group --- src/messenger/webim/operator/redirect.php | 3 ++- src/messenger/webim/operator/update.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/messenger/webim/operator/redirect.php b/src/messenger/webim/operator/redirect.php index 40c6488a..70500a05 100644 --- a/src/messenger/webim/operator/redirect.php +++ b/src/messenger/webim/operator/redirect.php @@ -46,7 +46,8 @@ if (isset($_GET['nextGroup'])) { $thread->nextAgent = 0; $thread->groupId = $nextid; $thread->agentId = 0; - $thread->agentName = "''"; + $thread->agentName = ''; + $thread->save(); $thread->postMessage( Thread::KIND_EVENTS, diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index 4a8848d0..8ebbd3a9 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -149,7 +149,7 @@ function print_pending_threads($groupids, $since) $thread = Thread::createFromDbInfo($row); $thread_info = array( 'thread' => $thread, - 'groupName' => $row['groupname'] + 'groupname' => $row['groupname'] ); $thread_as_xml = thread_to_xml($thread_info); $output[] = $thread_as_xml;