diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-03 21:43:32 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-03 21:45:28 +0100 |
commit | 44ac24d394d15941416b0fcc33fe471d7d19c64c (patch) | |
tree | 13aa6f887c0c8a37b40d7ae20e6c70c43b619837 /web/template | |
parent | 42c9957e41d2f5f8cfee657d203d6a3624a6ef0e (diff) | |
download | aurweb-44ac24d394d15941416b0fcc33fe471d7d19c64c.tar.xz |
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>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/tu_details.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php index c546eb7..5fe66c0 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -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> |