summaryrefslogtreecommitdiffstats
path: root/web/template/tu_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/tu_details.php')
-rw-r--r--web/template/tu_details.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index c09e30c4..c546eb70 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -6,7 +6,11 @@ $active_tus = $row["ActiveTUs"];
$quorum = $row["Quorum"];
$total = $yes + $no + $abstain;
-$participation = $total / $active_tus;
+if ($active_tus > 0) {
+ $participation = $total / $active_tus;
+} else {
+ $participation = 0;
+}
if ($yes > $active_tus / 2) {
$vote_accepted = true;