fix: [behavior:tag] Get identifier if tag data is an array
parent
ee5adaf971
commit
8345fabb50
|
@ -189,6 +189,8 @@ class TagBehavior extends Behavior
|
|||
{
|
||||
if (is_object($tag)) {
|
||||
return $tag->name;
|
||||
} else if (is_array($tag)) {
|
||||
return $tag['name'];
|
||||
} else {
|
||||
return trim($tag);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue