]> git.mxchange.org Git - friendica-addons.git/commitdiff
Ratioed: fill in zeroes for empty values
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 11 Jan 2025 18:36:06 +0000 (19:36 +0100)
committerTobias Diekershoff <tobias@noreply.git.friendi.ca>
Sun, 12 Jan 2025 11:03:00 +0000 (12:03 +0100)
ratioed/RatioedPanel.php

index bd9b44dcd09f18ce2cd8d24f346f6bcfce0a18f9..dac71752ab67236b6762ec77b04ffbce0c0571c8 100644 (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 {