Skip to content
Snippets Groups Projects
Commit bed00baf authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: Check to make sure $ost is initialized

parent c18eac40
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