From d33c82fa6e276afc19af792f19af406b67092d06 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sat, 25 May 2024 23:36:35 +0200 Subject: [PATCH] cs-fix Signed-off-by: dartcafe --- lib/Db/OptionMapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Db/OptionMapper.php b/lib/Db/OptionMapper.php index 8a0d514df..7ccfe73a2 100644 --- a/lib/Db/OptionMapper.php +++ b/lib/Db/OptionMapper.php @@ -214,7 +214,8 @@ protected function joinVotesCount(IQueryBuilder &$qb, string $fromAlias, bool $h // Count number of maybe votes for this option ->addSelect($qb->createFunction('COUNT(DISTINCT(CASE WHEN ' . $joinAlias . '.vote_answer = \'maybe\' THEN ' . $joinAlias . '.id END)) AS votes_maybe')) // inject if the votes should be hidden - ->addSelect($qb->createFunction(intval(!$hideResults) . ' as show_results')); } + ->addSelect($qb->createFunction(intval(!$hideResults) . ' as show_results')); + } /** * Joins poll to fetch option_limit and vote_limit