Update class.ticket.php

I think this is a mistake, however not sure.
Tested it my self, works fine.
Merge pull request #1090 from TakeMeNL/patch-1

Update class.ticket.php

Reviewed-By: Peter Rotich <peter@osticket.com>