diff msitegen.inc.php @ 607:e78d90ca4f4a

Use default database handle for transaction commits if none provided.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 31 Oct 2014 23:10:47 +0200
parents 204106edd2b6
children 2b4ea04adeea
line wrap: on
line diff
--- a/msitegen.inc.php	Fri Oct 31 21:47:02 2014 +0200
+++ b/msitegen.inc.php	Fri Oct 31 23:10:47 2014 +0200
@@ -649,7 +649,7 @@
 }
 
 
-function stDBCommitTransaction($dbh)
+function stDBCommitTransaction($dbh = FALSE)
 {
   global $db;
   return stDBExecSQL(($dbh !== FALSE) ? $dbh : $db, "COMMIT");