:octocat: fixed css class

This commit is contained in:
smiley
2017-10-25 04:51:53 +02:00
parent eb56b38766
commit 418f4512f1
+1 -1
View File
@@ -85,7 +85,7 @@ class QRMarkup extends QROutputAbstract{
*/
protected function toSVG(){
$length = $this->pixelCount * $this->options->pixelSize + $this->options->marginSize * 2;
$class = !empty($this->options->cssClass) ? $this->options->cssClass : hash('crc32', microtime(true));
$class = $this->options->cssClass ?: hash('crc32', microtime(true));
// svg header
$svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$length.'" height="'.$length.'" viewBox="0 0 '.$length.' '.$length.'" style="background-color:'.$this->options->bgColor.'">'.$this->options->eol.