mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 03:38:47 +02:00
Fixed TypeError on certain old ElementCreatedLogEntries
Fixes issue #261
This commit is contained in:
parent
ec50197b40
commit
577b841ee0
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class ElementCreatedLogEntry extends AbstractLogEntry implements LogWithCommentI
|
||||||
*/
|
*/
|
||||||
public function getCreationInstockValue(): ?string
|
public function getCreationInstockValue(): ?string
|
||||||
{
|
{
|
||||||
return $this->extra['i'] ?? null;
|
return isset($this->extra['i']) ? (string)$this->extra['i'] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue