Ratioed: fill in zeroes for empty values

This commit is contained in:
Matthew Exon 2025-01-11 19:36:06 +01:00 committed by Tobias Diekershoff
parent 8e65141cb5
commit 2ef9cb8add

View file

@ -175,8 +175,10 @@ class RatioedPanel extends Active
$user['ratioed'] = (float)($user['ratio']) >= 2.0;
}
else {
$user['reactions'] = 0;
if ($user['comments'] == 0) {
$user['ratio'] = '0';
$user['comments'] = 0;
$user['ratio'] = 0;
$user['ratioed'] = false;
}
else {