Skip to content

Commit

Permalink
fix(tagfield): php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 16, 2023
1 parent a6b4f19 commit cc4b673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/tagfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getRenderedHtml($domain, $canEdit = true): string {
if (!$canEdit) {
$html .= '<div class="form_field">';
$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)) {
Expand Down

0 comments on commit cc4b673

Please sign in to comment.