mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-21 22:57:31 +01:00
Fixed TypeError on certain old ElementCreatedLogEntries
Fixes issue #261
This commit is contained in:
@@ -54,7 +54,7 @@ class ElementCreatedLogEntry extends AbstractLogEntry implements LogWithCommentI
|
||||
*/
|
||||
public function getCreationInstockValue(): ?string
|
||||
{
|
||||
return $this->extra['i'] ?? null;
|
||||
return isset($this->extra['i']) ? (string)$this->extra['i'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user