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

Merge pull request #1456 from protich/issue/1455


bug: Check to make sure $ost is initialized

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents c18eac40 bed00baf
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Error extends Exception {
parent::__construct(__($message));
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
if ($ost->getConfig()->getLogLevel() == 3)
if ($ost && $ost->getConfig()->getLogLevel() == 3)
$message .= "\n\n" . $this->getBacktrace();
$ost->logError($this->getTitle(), $message, static::$sendAlert);
......
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