Ratioed: fill in zeroes for empty values

pull/1589/head
Matthew Exon 2025-01-11 19:36:06 +01:00 committed by Tobias Diekershoff
parent 8e65141cb5
commit 2ef9cb8add
1 changed files with 3 additions and 1 deletions

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 {