Fix notice in setup_groups_select function

This commit is contained in:
Dmitriy Simushev 2013-02-15 14:28:24 +00:00
parent f904f05dc9
commit 037135cf71

View File

@ -229,6 +229,7 @@ function setup_groups_select($groupid, $markoffline)
$val = ""; $val = "";
$selectedgroupid = $groupid; $selectedgroupid = $groupid;
$groupdescriptions = array(); $groupdescriptions = array();
$defaultdescription = "";
foreach ($allgroups as $k) { foreach ($allgroups as $k) {
$groupname = $k['vclocalname']; $groupname = $k['vclocalname'];
if ($k['inumofagents'] == 0 || ($groupid && $k['parent'] != $groupid && $k['groupid'] != $groupid )) { if ($k['inumofagents'] == 0 || ($groupid && $k['parent'] != $groupid && $k['groupid'] != $groupid )) {