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;