diff --git a/include/class.ticket.php b/include/class.ticket.php index 7c816ff80cbcf6498d1e4925042141e15cab62dd..f32cfbd86d8f12eccb000c4707b54d159b068991 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -98,9 +98,6 @@ class Ticket { $this->topic = null; $this->thread = null; - //REQUIRED: Preload thread obj - checked on lookup! - $this->getThread(); - return true; } @@ -1788,8 +1785,7 @@ class Ticket { return ($id && is_numeric($id) && ($ticket= new Ticket($id)) - && $ticket->getId()==$id - && $ticket->getThread()) + && $ticket->getId()==$id) ?$ticket:null; }