From cc4b673a862749db29e512ba71186aabd8dbe78c Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 16 Jan 2023 13:38:33 +0100 Subject: [PATCH] fix(tagfield): php warning --- inc/field/tagfield.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/field/tagfield.class.php b/inc/field/tagfield.class.php index b111a41a8..ee97d851c 100644 --- a/inc/field/tagfield.class.php +++ b/inc/field/tagfield.class.php @@ -73,7 +73,7 @@ public function getRenderedHtml($domain, $canEdit = true): string { if (!$canEdit) { $html .= '
'; $tagNames = []; - if (count($this->value) > 0) { + if (is_array($this->value) && count($this->value) > 0) { foreach ($this->value as $tagId) { $tag = new PluginTagTag(); if (!$tag->getFromDB($tagId)) {