1
0
mirror of https://github.com/flarum/core.git synced 2025-06-10 08:35:48 +02:00

Always initialize variable

This commit is contained in:
Franz Liedke 2015-06-08 09:49:07 +02:00
parent 137816b3c0
commit f3c854ca57

View File

@ -61,6 +61,7 @@ class IndexAction extends SerializeCollectionAction
if (count($postIds)) { if (count($postIds)) {
$posts = $this->posts->findByIds($postIds, $user); $posts = $this->posts->findByIds($postIds, $user);
} else { } else {
$where = [];
if ($discussionId = $request->get('discussions')) { if ($discussionId = $request->get('discussions')) {
$where['discussion_id'] = $discussionId; $where['discussion_id'] = $discussionId;
} }