mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-01-22 04:59:52 +00:00
Ratioed: fill in zeroes for empty values
This commit is contained in:
parent
8e65141cb5
commit
2ef9cb8add
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue