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

Fix another fatal error

This commit is contained in:
Toby Zerner
2016-09-03 22:32:06 +09:30
parent ab6e899c7e
commit 18a4b6d4b1

View File

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