mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Always initialize variable
This commit is contained in:
parent
10aa8abadb
commit
b94aa11573
@ -61,6 +61,7 @@ class IndexAction extends SerializeCollectionAction
|
||||
if (count($postIds)) {
|
||||
$posts = $this->posts->findByIds($postIds, $user);
|
||||
} else {
|
||||
$where = [];
|
||||
if ($discussionId = $request->get('discussions')) {
|
||||
$where['discussion_id'] = $discussionId;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user