[Fusionforge-commits] FusionForge branch 6.1 updated. v6.1-23-g9c04afa

Franck Villaume nerville at libremir.placard.fr.eu.org
Fri Jan 4 11:39:05 CET 2019


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, 6.1 has been updated
       via  9c04afaa8220751897b12b41b6f7f13f431033c9 (commit)
      from  cfd3cac7af52d5936afc88b83609be439e5ff675 (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=9c04afaa8220751897b12b41b6f7f13f431033c9

commit 9c04afaa8220751897b12b41b6f7f13f431033c9
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Jan 4 10:32:22 2019 +0000

    fix PHP warning that breaks pmDump feature in forge CLI

diff --git a/src/common/pm/ProjectGroup.class.php b/src/common/pm/ProjectGroup.class.php
index 268816b..a85f419 100644
--- a/src/common/pm/ProjectGroup.class.php
+++ b/src/common/pm/ProjectGroup.class.php
@@ -40,14 +40,14 @@ function &projectgroup_get_object($group_project_id, $data = false) {
 		} else {
 			$res = db_query_params('SELECT * FROM project_group_list_vw WHERE group_project_id=$1',
 						array($group_project_id));
-			if (db_numrows($res) <1 ) {
-				$PROJECTGROUP_OBJ["_".$group_project_id."_"]=false;
-				return false;
-			}
+		}
+		if (!$res || db_numrows($res) <1 ) {
+			$PROJECTGROUP_OBJ["_".$group_project_id."_"] = false;
+		} else {
 			$data = db_fetch_array($res);
+			$Group = group_get_object($data["group_id"]);
+			$PROJECTGROUP_OBJ["_".$group_project_id."_"] = new ProjectGroup($Group,$group_project_id,$data);
 		}
-		$Group = group_get_object($data["group_id"]);
-		$PROJECTGROUP_OBJ["_".$group_project_id."_"]= new ProjectGroup($Group,$group_project_id,$data);
 	}
 	return $PROJECTGROUP_OBJ["_".$group_project_id."_"];
 }

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

Summary of changes:
 src/common/pm/ProjectGroup.class.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list