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:
@@ -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
|
||||
|
Reference in New Issue
Block a user