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'] . " -"; }