[Fusionforge-commits] FusionForge branch Branch_5_3 updated. cd751e55bad794ae0a143a3b2843d55280c513aa

Franck Villaume nerville at fusionforge.org
Thu Mar 20 11:29:28 CET 2014


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, Branch_5_3 has been updated
       via  cd751e55bad794ae0a143a3b2843d55280c513aa (commit)
      from  8bc18b0a10861ed78857f41904ed8711a5d6a009 (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 -----------------------------------------------------------------
commit cd751e55bad794ae0a143a3b2843d55280c513aa
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Mar 20 11:28:44 2014 +0100

    fix [#645]: setPluginUse, put return at the rigth place

diff --git a/src/common/include/Group.class.php b/src/common/include/Group.class.php
index ac51787..5ac308c 100644
--- a/src/common/include/Group.class.php
+++ b/src/common/include/Group.class.php
@@ -1509,14 +1509,13 @@ class Group extends Error {
 			$res = db_query_params('INSERT INTO group_plugin (group_id, plugin_id) VALUES ($1, $2)',
 						array($this->getID(),
 							$plugin_id));
-			return $res;
 		} else {
 			$res = db_query_params('DELETE FROM group_plugin WHERE group_id=$1 AND plugin_id=$2',
 						array($this->getID(),
 							$plugin_id));
-			return $res;
 		}
 		$this->normalizeAllRoles();
+		return $res;
 	}
 
 	/**
@@ -2228,7 +2227,7 @@ class Group extends Error {
 		/*
 			Activate member(s) of the project
 		*/
-		
+
 		global $SYS;
 
 		$members = $this->getUsers (true);

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

Summary of changes:
 src/common/include/Group.class.php |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list