tu_details.php: Fix unknown result check

Quorum is a decimal field, so checking "!$quorum" does not work. Use the
number of active TUs instead which is how we already check whether
participation information is available in other places.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-02-03 21:43:32 +01:00
parent 42c9957e41
commit 44ac24d394

View file

@ -46,7 +46,7 @@ if ($yes > $active_tus / 2) {
<?php if ($isrunning == 0): ?>
<br />
<?= __("Result") ?>:
<?php if (!$quorum): ?>
<?php if ($active_tus == 0): ?>
<span><?= __("unknown") ?></span>
<?php elseif ($vote_accepted): ?>
<span style="color: green; font-weight: bold"><?= __("Accepted") ?></span>