[Fusionforge-commits] r10394 - trunk/src/plugins/blocks/common

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Sep 2 16:17:03 CEST 2010


Author: nerville
Date: 2010-09-02 16:17:03 +0200 (Thu, 02 Sep 2010)
New Revision: 10394

Modified:
   trunk/src/plugins/blocks/common/blocksPlugin.class.php
Log:
fix warning

Modified: trunk/src/plugins/blocks/common/blocksPlugin.class.php
===================================================================
--- trunk/src/plugins/blocks/common/blocksPlugin.class.php	2010-09-02 14:12:49 UTC (rev 10393)
+++ trunk/src/plugins/blocks/common/blocksPlugin.class.php	2010-09-02 14:17:03 UTC (rev 10394)
@@ -59,8 +59,8 @@
 
 	function CallHook ($hookname, $params) {
 		global $use_blocksplugin,$G_SESSION,$HTML;
-		$group_id=$params['group'];
 		if ($hookname == "groupisactivecheckbox") {
+		    $group_id=$params['group'];
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group = &group_get_object($group_id);
@@ -78,6 +78,7 @@
 			echo "</td>";
 			echo "</tr>";
 		} elseif ($hookname == "groupisactivecheckboxpost") {
+		    $group_id=$params['group'];
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group = &group_get_object($group_id);
 			$use_blocksplugin = getStringFromRequest('use_blocksplugin');




More information about the Fusionforge-commits mailing list