Skip to content

Commit

Permalink
fixed count(): Argument #1 () must be of type Countable|array, null g…
Browse files Browse the repository at this point in the history
…iven
  • Loading branch information
bruno-farias committed Sep 11, 2023
1 parent f66abf4 commit bee99c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -23407,8 +23407,8 @@ protected function setSVGStyles($svgstyle, $prevsvgstyle, $x=0, $y=0, $w=1, $h=1
$cy -= $h;
}
$this->_out(sprintf('%F 0 0 %F %F %F cm', ($w * $this->k), ($h * $this->k), ($x * $this->k), ($cy * $this->k)));
if (count($gradient['stops']) > 1) {
$this->Gradient($gradient['type'], $gradient['coords'], $gradient['stops'], array(), false);
if ((is_array($gradient['stops']) || $gradient['stops'] instanceof Countable) && count($gradient['stops']) > 1) {
$this->Gradient($gradient['type'], $gradient['coords'], $gradient['stops']);
}
} elseif ($svgstyle['fill'] != 'none') {
$fill_color = TCPDF_COLORS::convertHTMLColorToDec($svgstyle['fill'], $this->spot_colors);
Expand Down

0 comments on commit bee99c8

Please sign in to comment.