changeset 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 3d2b70fbeb78
children 7d676c77e3f8
files msitegen.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");