pdo was missing a global on db_begin/end_transaction()
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
* @access public
|
||||
*/
|
||||
function serendipity_db_begin_transaction(){
|
||||
global $serendipity;
|
||||
$serendipity['dbConn']->beginTransaction();
|
||||
}
|
||||
|
||||
@@ -18,6 +19,7 @@ function serendipity_db_begin_transaction(){
|
||||
* @param boolean If true, perform the query. If false, rollback.
|
||||
*/
|
||||
function serendipity_db_end_transaction($commit){
|
||||
global $serendipity;
|
||||
if ($commit){
|
||||
$serendipity['dbConn']->commit();
|
||||
}else{
|
||||
|
||||
@@ -49,6 +49,7 @@ function serendipity_db_sqlite_fetch_array($row, $type = PDO::FETCH_ASSOC)
|
||||
*/
|
||||
|
||||
function serendipity_db_begin_transaction(){
|
||||
global $serendipity;
|
||||
$serendipity['dbConn']->beginTransaction();
|
||||
}
|
||||
|
||||
@@ -59,6 +60,7 @@ function serendipity_db_begin_transaction(){
|
||||
* @param boolean If true, perform the query. If false, rollback.
|
||||
*/
|
||||
function serendipity_db_end_transaction($commit){
|
||||
global $serendipity;
|
||||
if ($commit){
|
||||
$serendipity['dbConn']->commit();
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user