[Fusionforge-commits] r10702 - trunk/src/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Sat Sep 25 21:00:36 CEST 2010


Author: lolando
Date: 2010-09-25 21:00:35 +0200 (Sat, 25 Sep 2010)
New Revision: 10702

Modified:
   trunk/src/common/include/Group.class.php
Log:
Add temporary failsafe measure to group deletion; will be gone when we get rid of user_group

Modified: trunk/src/common/include/Group.class.php
===================================================================
--- trunk/src/common/include/Group.class.php	2010-09-25 18:47:22 UTC (rev 10701)
+++ trunk/src/common/include/Group.class.php	2010-09-25 19:00:35 UTC (rev 10702)
@@ -1441,6 +1441,9 @@
 		for ($i=0; $i<count($members); $i++) {
 			$this->removeUser($members[$i]->getID());
 		}
+		// Failsafe until user_group table is gone
+		$res = db_query_params ('DELETE FROM user_group WHERE group_id=$1', 
+					array ($this->getID())) ;
 		//
 		//	Delete Trackers
 		//




More information about the Fusionforge-commits mailing list