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  ab2372cc64696422564039192f2cbc5b49526d4a (commit)
      from  d5a71125a36031539cfcb99bfdd7520b1c93b233 (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=ab2372cc64696422564039192f2cbc5b49526d4a

commit ab2372cc64696422564039192f2cbc5b49526d4a
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Fri Apr 23 13:28:35 2021 +0200

    PHP8 support: drop each() function

diff --git a/src/common/include/utils.php b/src/common/include/utils.php
index 0099ab2..3017126 100644
--- a/src/common/include/utils.php
+++ b/src/common/include/utils.php
@@ -409,7 +409,7 @@ function util_make_links($data = '') {
 
        $lines = split("\n", $data);
        $newText = "";
-       while (list ($key, $line) = each($lines)) {
+       foreach ($lines as $key => $line) {
                // Do not scan lines if they already have hyperlinks.
                // Avoid problem with text written with an WYSIWYG HTML editor.
                if (eregi('<a ([^>]*)>.*</a>', $line, $linePart)) {
diff --git a/src/cronjobs/db/db_trove_maint.php 
b/src/cronjobs/db/db_trove_maint.php
index 0609088..3b1023f 100755
--- a/src/cronjobs/db/db_trove_maint.php
+++ b/src/cronjobs/db/db_trove_maint.php
@@ -138,7 +138,7 @@ db_query_params ('DELETE FROM trove_treesums',
 $err .= db_error();
 
 //$err .= "<table>";
-while (list($k,$v) = each($sum_totals)) {
+foreach ($sum_totals as $k => $v) {
        $res = db_query_params ('INSERT INTO trove_treesums 
(trove_cat_id,subprojects)
                VALUES ($1,$2)',
                                array($k,
diff --git a/src/www/include/tool_reports.php b/src/www/include/tool_reports.php
index 4929c36..e739bc7 100644
--- a/src/www/include/tool_reports.php
+++ b/src/www/include/tool_reports.php
@@ -4,7 +4,7 @@
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010, FusionForge Team
  * Copyright (C) 2010-2012 Alain Peyrat - Alcatel-Lucent
- * Copyright 2013,2016, Franck Villaume - TrivialDev
+ * Copyright 2013,2016,2021, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -38,7 +38,7 @@ function reports_quick_graph($title, $qpa1, $qpa2) {
 
                $assoc_open = util_result_columns_to_assoc($result1);
                $assoc_all = util_result_columns_to_assoc($result2);
-               while (list($key, $val) = each($assoc_all)) {
+               foreach ($assoc_all as $key => $val) {
                        $titles[] = $key;
                        $all[] = $val;
                        if (isset($assoc_open[$key])) {
diff --git a/src/www/project/admin/group_trove.php 
b/src/www/project/admin/group_trove.php
index 8422146..2edbad8 100644
--- a/src/www/project/admin/group_trove.php
+++ b/src/www/project/admin/group_trove.php
@@ -51,7 +51,7 @@ if (getStringFromRequest('submit') && 
getStringFromRequest('root1')) {
        $allroots = array();
        $allroots = getStringFromRequest('root1');
        //$eachroot = ;//must make this bypass because it wouldn't compile 
otherwise
-       while (list($rootnode,$value) = each($allroots)) {
+       foreach ($allroots as $rootnode => $value) {
                // check for array, then clear each root node for group
                db_query_params ('
                        DELETE FROM trove_group_link
@@ -86,7 +86,7 @@ project_admin_header(array('title'=>_('Edit Trove 
Categorization'),'group'=>$gro
 echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'), 
'method' => 'post'));
 
 $CATROOTS = trove_getallroots();
-while (list($catroot,$fullname) = each($CATROOTS)) {
+foreach ($CATROOTS as $catroot => $fullname) {
        $title = '';
        if ($use_tooltips) {
                $res_cat = db_query_params ('SELECT * FROM trove_cat WHERE 
trove_cat_id=$1', array($catroot));
diff --git a/src/www/stats/site_stats_utils.php 
b/src/www/stats/site_stats_utils.php
index 7db3234..c602326 100644
--- a/src/www/stats/site_stats_utils.php
+++ b/src/www/stats/site_stats_utils.php
@@ -4,7 +4,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010 (c) FusionForge Team
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013,2021, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -43,7 +43,7 @@ function stats_util_sum_array($sum, $add) {
        if (!is_array($sum)) {
                $sum = array();
        }
-       while(list($key, $val) = each($add)) {
+       foreach ($add as $key => $val) {
                if (!isset($sum[$key])) {
                        $sum[$key] = 0;
                }

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

Summary of changes:
 src/common/include/utils.php          | 2 +-
 src/cronjobs/db/db_trove_maint.php    | 2 +-
 src/www/include/tool_reports.php      | 4 ++--
 src/www/project/admin/group_trove.php | 4 ++--
 src/www/stats/site_stats_utils.php    | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to