1
0
Fork 0

Fix context order / notice fixed

This commit is contained in:
Michael 2021-05-11 19:53:19 +00:00
commit 8eacfbc570
3 changed files with 19 additions and 4 deletions

View file

@ -40,6 +40,8 @@ class Card extends BaseFactory
$item = Post::selectFirst(['nody'], ['uri-id' => $uriId]);
if (!empty($item['body'])) {
$data = BBCode::getAttachmentData($item['body']);
} else {
$data = [];
}
foreach (Post\Media::getByURIId($uriId, [Post\Media::HTML]) as $attached) {