:octocat: don't add empty class attributes

This commit is contained in:
smiley
2017-12-21 00:53:42 +01:00
parent cd38267919
commit c877a58c77
+3 -1
View File
@@ -94,7 +94,9 @@ class QRMarkup extends QROutputAbstract{
}
elseif($from >= 0){
$svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale)
.'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'"/>'.$this->options->eol;
.'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" fill="'.$value.'"'
.(trim($this->options->cssClass) !== '' ? ' class="'.$this->options->cssClass.'"' :'').' />'
.$this->options->eol;
// reset count
$from = -1;