mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Fixed exception in system log.
This commit is contained in:
parent
46772c4ef3
commit
8a7b90d0ea
5 changed files with 8 additions and 36 deletions
|
@ -57,7 +57,7 @@ class ExceptionLogEntry extends AbstractLogEntry
|
|||
*/
|
||||
public function getFile(): string
|
||||
{
|
||||
return $this->extra['f'];
|
||||
return $this->extra['f'] ?? 'Unknown file';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ class ExceptionLogEntry extends AbstractLogEntry
|
|||
*/
|
||||
public function getLine(): int
|
||||
{
|
||||
return $this->extra['l'];
|
||||
return $this->extra['l'] ?? -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -77,6 +77,6 @@ class ExceptionLogEntry extends AbstractLogEntry
|
|||
*/
|
||||
public function getMessage(): string
|
||||
{
|
||||
return $this->extra['m'];
|
||||
return $this->extra['m'] ?? 'Unknown message';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue