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