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  6578c20e6e085028597c466e5fd5b43814c9c2a2 (commit)
      from  309bce4842a9845ed0bd189c2bb932e8107502b8 (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=6578c20e6e085028597c466e5fd5b43814c9c2a2

commit 6578c20e6e085028597c466e5fd5b43814c9c2a2
Author: Franck Villaume <[email protected]>
Date:   Sat Sep 26 12:31:14 2020 +0200

    fix php warning, missing translation, and space

diff --git a/src/www/include/vote_function.php 
b/src/www/include/vote_function.php
index 6e7a5c2..74f025c 100644
--- a/src/www/include/vote_function.php
+++ b/src/www/include/vote_function.php
@@ -4,7 +4,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010, FusionForge Team
- * Copyright 2013,2016, Franck Villaume - TrivialDev
+ * Copyright 2013,2016,2020, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -398,7 +398,7 @@ function vote_show_user_rate_box ($user_id, $by_id=0) {
                                        array($by_id,
                                              $user_id));
                $prev_vote = util_result_columns_to_assoc($res);
-               while (list($k,$v) = each($prev_vote)) {
+               foreach($prev_vote as $k => $v) {
                        if ($v == 0) {
                                $prev_vote[$k] = 0.1;
                        }
@@ -410,7 +410,7 @@ function vote_show_user_rate_box ($user_id, $by_id=0) {
        echo '<input type="hidden" name="rated_user" value="'.$user_id.'" />
        <table>';
        for ($i=1; $i<=count($USER_RATING_QUESTIONS); $i++) {
-               $popup="USER_RATING_POPUP$i";
+               $popup = "USER_RATING_POPUP$i";
                global $$popup;
                if (!isset($prev_vote[$i])) {
                        $prev_vote[$i] = '';
@@ -418,7 +418,7 @@ function vote_show_user_rate_box ($user_id, $by_id=0) {
                echo '
                        <tr>
                                <td><strong>'. $USER_RATING_QUESTIONS[$i] 
.':</strong></td>
-                               <td>'. 
html_build_select_box_from_arrays($USER_RATING_VALUES,$$popup,"Q_$i",$prev_vote[$i]/*'xzxz'*/,true,'Unrated').'</td>
+                               <td>'. 
html_build_select_box_from_arrays($USER_RATING_VALUES, $$popup, "Q_$i", 
$prev_vote[$i]/*'xzxz'*/, true, _('Unrated')).'</td>
                        </tr>';
        }
 

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

Summary of changes:
 src/www/include/vote_function.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 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