I know this is an old thread, but better to reply to an old one than create a duplicate, correct? :
I am having some issues with the My Tickets (count) working correctly. Currently the count shows all assigned/open tickets. The actual query shows only open/assigned tickets which is perfect. I have looked through tickets.php and ticket.inc.php and I think i foudn the place to make the change, but its not giving the desired effect.
Here is the issue:

In tickets.php on line 432 (my file) this shows
if($stats) {
$nav->addSubMenu(array('desc'=>'My Tickets ('.$stats.')','title'=>'Assigned Tickets',
'href'=>'tickets.php?status=assigned','iconclass'=>'assignedTickets'));
}
I have these two variations, but they don't seem to be the right change.
if($stats+$stats) {
$nav->addSubMenu(array('desc'=>'My Tickets ('.$stats.')','title'=>'Assigned Tickets',
'href'=>'tickets.php?status=assigned','iconclass'=>'assignedTickets'));
}
and
if($stats) {
$nav->addSubMenu(array('desc'=>'My Tickets ('.$stats+$stats.')','title'=>'Assigned Tickets',
'href'=>'tickets.php?status=assigned','iconclass'=>'assignedTickets'));
}
Any ideas why adding +$stats
wouldn't count ONLY open and assigned tickets?
Thanks
-Matt