Fix divBy0 if all info columns are disabled

This commit is contained in:
Markus Jung 2016-06-18 22:42:50 +02:00
parent c972e6f274
commit 72335e1ec5
1 changed files with 1 additions and 1 deletions

View File

@ -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']);