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
Branches
Tags
No related merge requests found
...@@ -80,7 +80,7 @@ class Dept { ...@@ -80,7 +80,7 @@ class Dept {
global $cfg; global $cfg;
if(!$this->email) if(!$this->email)
if(!($this->email = Email::lookup($this->getEmailId()))) if(!($this->email = Email::lookup($this->getEmailId())) && $cfg)
$this->email = $cfg->getDefaultEmail(); $this->email = $cfg->getDefaultEmail();
return $this->email; return $this->email;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment