Fixed TypeError on certain old ElementCreatedLogEntries

Fixes issue #261
This commit is contained in:
Jan Böhmer 2023-04-08 22:57:07 +02:00
parent ec50197b40
commit 577b841ee0

View file

@ -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;
} }
/** /**