This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 8e9d30b3f35311a3c9727d462e4087fc6d63cbfa
Author: Daniel Gruno <[email protected]>
AuthorDate: Fri Dec 10 16:53:40 2021 +0100

    fix variable reference
---
 webui/js/source/listview-threaded.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/listview-threaded.js 
b/webui/js/source/listview-threaded.js
index 3ee2a0d..f33a122 100644
--- a/webui/js/source/listview-threaded.js
+++ b/webui/js/source/listview-threaded.js
@@ -61,7 +61,7 @@ function count_replies(thread) {
         for (let child of thread.children) {
             if (child.tid == thread.tid) reps--;
             reps++;
-            reps += count_replies(thread.children[i]);
+            reps += count_replies(child);
         }
     }
     return reps;

Reply via email to