Dolphiq / craft3-iconpicker

Craft plugin that provides a new field type that offers end users an easy way to pick an icon from a .woff or .ttf font file. You can easily use ionicons or font awesome icons or any other compatible font file.
MIT License
16 stars 11 forks source link

count(): Parameter must be an array or an object that implements Countable #20

Open brambeekman opened 4 years ago

brambeekman commented 4 years ago

78910111213141516171819202122232425 *

$field->getFontCss();

if (count($icons) > 0) { ?>

chrisrowe commented 4 years ago

Seeing the same issue here, I assume related to a recent change in Craft

PHP Warning – yii\base\ErrorException
count(): Parameter must be an array or an object that implements Countable
1. in /Users/chrisrowe/Sites/REDACTED/vendor/dolphiq/iconpicker/src/views/main/_field.php at line 16

if (count($icons) > 0) {