1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 20:20:34 +02:00

Fix fatal error when viewing a discussion with multiple pages of posts

This commit is contained in:
Toby Zerner
2016-09-03 22:30:22 +09:30
parent f267a63ffe
commit ab6e899c7e

View File

@@ -142,6 +142,10 @@ class AddPostMentionedByRelationship
}
if (isset($posts)) {
$posts = array_filter($posts, function ($post) {
return is_object($post);
});
$ids = [];
// Once we have the posts, construct a list of the IDs of all of