mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 05:22:17 +08:00
Fix $tag
object getting overriden by last array item
This commit is contained in:
parent
bcb5577de5
commit
3635dbad19
|
@ -82,8 +82,9 @@ class Tag
|
|||
$tagsDocument = $this->getTagsDocument($request, $slug);
|
||||
|
||||
$apiDocument->included[] = $tagsDocument->data;
|
||||
foreach ((array) $tagsDocument->included as $tag) {
|
||||
$apiDocument->included[] = $tag;
|
||||
$includedTags = $tagsDocument->included;
|
||||
foreach ((array) $includedTags as $includedTag) {
|
||||
$apiDocument->included[] = $includedTag;
|
||||
}
|
||||
|
||||
$document->title = $tag->name;
|
||||
|
|
Loading…
Reference in New Issue
Block a user