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
Branches
Tags
No related merge requests found
...@@ -27,7 +27,7 @@ class Error extends Exception { ...@@ -27,7 +27,7 @@ class Error extends Exception {
parent::__construct(__($message)); parent::__construct(__($message));
$message = str_replace(ROOT_DIR, '(root)/', _S($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(); $message .= "\n\n" . $this->getBacktrace();
$ost->logError($this->getTitle(), $message, static::$sendAlert); $ost->logError($this->getTitle(), $message, static::$sendAlert);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment