mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-03 05:57:19 +00:00
:octocat: don't add empty class attributes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user