Ratioed: fill in zeroes for empty values
parent
8e65141cb5
commit
2ef9cb8add
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue