From 72335e1ec54fa69b1cd872e6fdcef8a8e849bba6 Mon Sep 17 00:00:00 2001 From: Markus Jung Date: Sat, 18 Jun 2016 22:42:50 +0200 Subject: [PATCH] Fix divBy0 if all info columns are disabled --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index eae8073..de725b6 100644 --- a/index.php +++ b/index.php @@ -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']);