mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Fix another fatal error
This commit is contained in:
@@ -142,10 +142,7 @@ class AddPostMentionedByRelationship
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($posts)) {
|
if (isset($posts)) {
|
||||||
$posts = array_filter($posts, function ($post) {
|
$posts = array_filter((array) $posts, 'is_object');
|
||||||
return is_object($post);
|
|
||||||
});
|
|
||||||
|
|
||||||
$ids = [];
|
$ids = [];
|
||||||
|
|
||||||
// Once we have the posts, construct a list of the IDs of all of
|
// Once we have the posts, construct a list of the IDs of all of
|
||||||
|
Reference in New Issue
Block a user