This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  e01bdead8c4b3a1f4e286744cb68f130ecd2ba46 (commit)
      from  f5ac894542ae44a040ca773f11de57f5362d642c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=e01bdead8c4b3a1f4e286744cb68f130ecd2ba46

commit e01bdead8c4b3a1f4e286744cb68f130ecd2ba46
Author: Franck Villaume <[email protected]>
Date:   Fri Feb 14 19:53:24 2020 +0100

    diary vote system: fix getVotes

diff --git a/src/common/diary/DiaryNote.class.php 
b/src/common/diary/DiaryNote.class.php
index 9b9fb06..5519694 100644
--- a/src/common/diary/DiaryNote.class.php
+++ b/src/common/diary/DiaryNote.class.php
@@ -268,8 +268,6 @@ class DiaryNote extends FFObject {
                }
 
                $voters = $this->getVoters();
-               unset($voters[0]);      /* just in case */
-               unset($voters[100]);    /* need users */
                if (($numvoters = count($voters)) < 1) {
                        $this->votes = array(0, 0, 0);
                        return $this->votes;

-----------------------------------------------------------------------

Summary of changes:
 src/common/diary/DiaryNote.class.php | 2 --
 1 file changed, 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to