Fix undefined groupname in /operator/update.php

This commit is contained in:
Dmitriy Simushev 2012-10-15 13:31:49 +00:00
parent 498a34ae19
commit 7c661b11c6

View File

@ -64,7 +64,7 @@ function thread_to_xml($thread_info)
$threadoperator = $nextagent ? get_operator_name($nextagent) $threadoperator = $nextagent ? get_operator_name($nextagent)
: ($thread->agentName ? $thread->agentName : "-"); : ($thread->agentName ? $thread->agentName : "-");
if ($threadoperator == "-" && $thread_info['groupname']) { if ($threadoperator == "-" && ! empty($thread_info['groupname'])) {
$threadoperator = "- " . $thread_info['groupname'] . " -"; $threadoperator = "- " . $thread_info['groupname'] . " -";
} }