From: Matthew Exon Date: Sat, 11 Jan 2025 18:36:06 +0000 (+0100) Subject: Ratioed: fill in zeroes for empty values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ef9cb8add8bc28a5d6dea9f40276abea2814d97;p=friendica-addons.git Ratioed: fill in zeroes for empty values --- diff --git a/ratioed/RatioedPanel.php b/ratioed/RatioedPanel.php index bd9b44dc..dac71752 100644 --- a/ratioed/RatioedPanel.php +++ b/ratioed/RatioedPanel.php @@ -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 {