Skip to content

Commit cc4b673

Browse files
committed
fix(tagfield): php warning
1 parent a6b4f19 commit cc4b673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field/tagfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getRenderedHtml($domain, $canEdit = true): string {
7373
if (!$canEdit) {
7474
$html .= '<div class="form_field">';
7575
$tagNames = [];
76-
if (count($this->value) > 0) {
76+
if (is_array($this->value) && count($this->value) > 0) {
7777
foreach ($this->value as $tagId) {
7878
$tag = new PluginTagTag();
7979
if (!$tag->getFromDB($tagId)) {

0 commit comments

Comments
 (0)