[Fusionforge-commits] r12914 - branches/Branch_5_1/src/common/forum

Alain Peyrat aljeux at fusionforge.org
Fri Mar 25 17:21:53 CET 2011


Author: aljeux
Date: 2011-03-25 17:21:52 +0100 (Fri, 25 Mar 2011)
New Revision: 12914

Modified:
   branches/Branch_5_1/src/common/forum/Forum.class.php
Log:
Add missing rollback()

Modified: branches/Branch_5_1/src/common/forum/Forum.class.php
===================================================================
--- branches/Branch_5_1/src/common/forum/Forum.class.php	2011-03-25 14:54:26 UTC (rev 12913)
+++ branches/Branch_5_1/src/common/forum/Forum.class.php	2011-03-25 16:21:52 UTC (rev 12914)
@@ -223,11 +223,11 @@
 			setup_gettext_from_context();
 			if (!$fm->create($string, $string)) {
 				$this->setError($fm->getErrorMessage());
+				db_rollback();
 				return false;
 			}
 		}
 		db_commit();
-
 		return true;
 	}
 




More information about the Fusionforge-commits mailing list