[aur-dev] [PATCH] 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> --- web/template/tu_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> -- 1.8.5.3
participants (1)
-
Lukas Fleischer