Skip to content

Commit 505bcbb

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop-next
2 parents 7869644 + 25d775e commit 505bcbb

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
osTicket
22
========
3-
<a href="http://osticket.com"><img src="http://osticket.com/sites/default/files/osTicket.jpg"
3+
<a href="https://osticket.com"><img height="80px" width="80px" src="images/favicon.png"
44
align="left" hspace="10" vspace="6"></a>
55

66
**osTicket** is a widely-used open source support ticket system. It seamlessly

images/favicon.png

28.4 KB
Loading

include/class.error.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ function __construct($message) {
2525
global $ost;
2626

2727
parent::__construct(__($message));
28-
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
2928

30-
if ($ost && $ost->getConfig()->getLogLevel() == 3)
31-
$message .= "\n\n" . $this->getBacktrace();
29+
if ($ost) {
30+
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
3231

33-
$ost->logError($this->getTitle(), $message, static::$sendAlert);
32+
if ($ost->getConfig()->getLogLevel() == 3)
33+
$message .= "\n\n" . $this->getBacktrace();
34+
35+
$ost->logError($this->getTitle(), $message, static::$sendAlert);
36+
}
3437
}
3538

3639
function getTitle() {

0 commit comments

Comments
 (0)