From 7c661b11c654b750cdb433df7a9f91da2e6f4735 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 15 Oct 2012 13:31:49 +0000 Subject: [PATCH] Fix undefined groupname in /operator/update.php --- src/messenger/webim/operator/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index d5f8af08..4a8848d0 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -64,7 +64,7 @@ function thread_to_xml($thread_info) $threadoperator = $nextagent ? get_operator_name($nextagent) : ($thread->agentName ? $thread->agentName : "-"); - if ($threadoperator == "-" && $thread_info['groupname']) { + if ($threadoperator == "-" && ! empty($thread_info['groupname'])) { $threadoperator = "- " . $thread_info['groupname'] . " -"; }