Update application/models/Ticket.php