mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
42c9957e41
commit
44ac24d394
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ if ($yes > $active_tus / 2) {
|
||||||
<?php if ($isrunning == 0): ?>
|
<?php if ($isrunning == 0): ?>
|
||||||
<br />
|
<br />
|
||||||
<?= __("Result") ?>:
|
<?= __("Result") ?>:
|
||||||
<?php if (!$quorum): ?>
|
<?php if ($active_tus == 0): ?>
|
||||||
<span><?= __("unknown") ?></span>
|
<span><?= __("unknown") ?></span>
|
||||||
<?php elseif ($vote_accepted): ?>
|
<?php elseif ($vote_accepted): ?>
|
||||||
<span style="color: green; font-weight: bold"><?= __("Accepted") ?></span>
|
<span style="color: green; font-weight: bold"><?= __("Accepted") ?></span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue