diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index 82caa6727536fc6bf8ab2d3b663784e014309050..6fa756e21ecf5a7948e9f02d74cb3658c62a7c6a 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -602,8 +602,10 @@ if ($results) { <option value="s<?php echo $thisstaff->getId(); ?>"><?php echo __('Me');?></option> <?php if(($users=Staff::getStaffMembers())) { - echo '<OPTGROUP label="'.sprintf(__('Agents (%d)'),count($users)).'">'; + echo '<OPTGROUP label="'.sprintf(__('Agents (%d)'),count($users)-1).'">'; foreach($users as $id => $name) { + if ($id == $thisstaff->getId()) + continue; $k="s$id"; echo sprintf('<option value="%s">%s</option>', $k, $name); }