We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f4fcc commit 1ca995aCopy full SHA for 1ca995a
src/Output/QRMarkupSVG.php
@@ -91,15 +91,16 @@ protected function paths():string{
91
continue;
92
}
93
94
- $format = empty($this->moduleValues[$M_TYPE])
+ // ignore non-existent module values
95
+ $format = !isset($this->moduleValues[$M_TYPE]) || empty($this->moduleValues[$M_TYPE])
96
? '<path class="%1$s" d="%2$s"/>'
97
: '<path class="%1$s" fill="%3$s" fill-opacity="%4$s" d="%2$s"/>';
98
99
$svg[] = sprintf(
100
$format,
101
$this->getCssClass($M_TYPE),
102
$path,
- $this->moduleValues[$M_TYPE],
103
+ $this->moduleValues[$M_TYPE] ?? '',
104
$this->options->svgOpacity)
105
;
106
0 commit comments