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

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Sep 20 22:18:56 CEST 2010


Author: lolando
Date: 2010-09-20 22:18:55 +0200 (Mon, 20 Sep 2010)
New Revision: 10561

Modified:
   trunk/src/common/include/Role.class.php
Log:
Fetch correct id for the newly created role

Modified: trunk/src/common/include/Role.class.php
===================================================================
--- trunk/src/common/include/Role.class.php	2010-09-20 20:08:28 UTC (rev 10560)
+++ trunk/src/common/include/Role.class.php	2010-09-20 20:18:55 UTC (rev 10561)
@@ -216,7 +216,7 @@
 				db_rollback();
 				return false;
 			}
-			$role_id=db_insertid($res,'role','role_id');
+			$role_id=db_insertid($res,'pfo_role','role_id');
 			if (!$role_id) {
 				$this->setError('create::db_insertid::'.db_error());
 				db_rollback();




More information about the Fusionforge-commits mailing list