diff --git a/src/models/Icon.php b/src/models/Icon.php index cb992a3..082013c 100644 --- a/src/models/Icon.php +++ b/src/models/Icon.php @@ -135,7 +135,7 @@ public function getLabel(): ?string return $this->value; } - if ($this->type === self::TYPE_SVG) { + if ($this->value && $this->type === self::TYPE_SVG) { return pathinfo($this->value, PATHINFO_FILENAME); }