diff --git a/src/Output/QRMarkupSVG.php b/src/Output/QRMarkupSVG.php index c091b0385..910e8673b 100644 --- a/src/Output/QRMarkupSVG.php +++ b/src/Output/QRMarkupSVG.php @@ -91,7 +91,8 @@ class QRMarkupSVG extends QRMarkup{ continue; } - $format = empty($this->moduleValues[$M_TYPE]) + // ignore non-existent module values + $format = !isset($this->moduleValues[$M_TYPE]) || empty($this->moduleValues[$M_TYPE]) ? '' : ''; @@ -99,7 +100,7 @@ class QRMarkupSVG extends QRMarkup{ $format, $this->getCssClass($M_TYPE), $path, - $this->moduleValues[$M_TYPE], + $this->moduleValues[$M_TYPE] ?? '', $this->options->svgOpacity) ; }