dompdf / php-svg-lib

SVG file parsing / rendering library
GNU Lesser General Public License v3.0
1.4k stars 77 forks source link

Make sure $attributes is an array #32

Closed barryvdh closed 6 years ago

barryvdh commented 6 years ago

Otherwise the count() in Document will fail. This will make sure that $attributes is an array as expected, before initialized.

if (count($this->attributes)) {
     $tag = new Group($this, $name);
}
barryvdh commented 6 years ago

Sorry, duplicate of https://github.com/PhenX/php-svg-lib/pull/27