fix: [behavior:tag] Get identifier if tag data is an array

pull/121/head
Sami Mokaddem 2022-10-27 10:12:45 +02:00
parent ee5adaf971
commit 8345fabb50
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ class TagBehavior extends Behavior
{ {
if (is_object($tag)) { if (is_object($tag)) {
return $tag->name; return $tag->name;
} else if (is_array($tag)) {
return $tag['name'];
} else { } else {
return trim($tag); return trim($tag);
} }