mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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
|
@ -58,7 +58,7 @@ class DatabaseUpdatedLogEntry extends AbstractLogEntry
|
|||
*/
|
||||
public function getOldVersion(): string
|
||||
{
|
||||
return (string) $this->extra['o'];
|
||||
return (string) ($this->extra['o'] ?? '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,6 +68,6 @@ class DatabaseUpdatedLogEntry extends AbstractLogEntry
|
|||
*/
|
||||
public function getNewVersion(): string
|
||||
{
|
||||
return (string) $this->extra['n'];
|
||||
return (string) ($this->extra['n'] ?? '');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue