Skip to content
Snippets Groups Projects
Commit 523fa48c authored by Olivier Perez's avatar Olivier Perez
Browse files

Merge branch 'fix-plain-index' into 'release'

Fix divBy0 if all info columns are disabled

Hiding all information columns results in a division by zero.

See merge request !128
parents abe50986 72335e1e
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ $pollService = new PollService($connect, new $logService());
/* ---- */
$demoPoll = $pollService->findById('aqg259dth55iuhwm');
$nbcol = $config['show_what_is_that'] + $config['show_the_software'] + $config['show_cultivate_your_garden'];
$nbcol = max( $config['show_what_is_that'] + $config['show_the_software'] + $config['show_cultivate_your_garden'], 1 );
$smarty->assign('show_what_is_that', $config['show_what_is_that']);
$smarty->assign('show_the_software', $config['show_the_software']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment