From b94aa1157356ea84c5a2f58d181348e8f61c1623 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 8 Jun 2015 09:49:07 +0200 Subject: [PATCH] Always initialize variable --- framework/core/src/Api/Actions/Posts/IndexAction.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/src/Api/Actions/Posts/IndexAction.php b/framework/core/src/Api/Actions/Posts/IndexAction.php index c5dcbb27f..7bea440e9 100644 --- a/framework/core/src/Api/Actions/Posts/IndexAction.php +++ b/framework/core/src/Api/Actions/Posts/IndexAction.php @@ -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; }