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

install: Fix crash in installation

osTicket configuration is not available while loading initial data
parent c7cb672f
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class Dept {
global $cfg;
if(!$this->email)
if(!($this->email = Email::lookup($this->getEmailId())))
if(!($this->email = Email::lookup($this->getEmailId())) && $cfg)
$this->email = $cfg->getDefaultEmail();
return $this->email;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment