Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <github@dartcafe.de>
  • Loading branch information
dartcafe committed May 25, 2024
1 parent 700ec1b commit d33c82f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Db/OptionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d33c82f

Please sign in to comment.