Skip to content
Snippets Groups Projects
Commit 2821e9bd authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix possible crash if user is not associated with a TicketUser

parent 959057f4
Branches
Tags
No related merge requests found
......@@ -55,8 +55,8 @@ implements EmailContact {
}
function getId() { return $this->user->getId(); }
function getEmail() { return $this->user->getEmail(); }
function getId() { return ($this->user) ? $this->user->getId() : null; }
function getEmail() { return ($this->user) ? $this->user->getEmail() : null; }
function sendAccessLink() {
global $ost;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment