Added transaction check before main rollback
This commit is contained in:
parent
ae24b5c2e8
commit
cb436cc182
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ try {
|
|||
}
|
||||
$_shm_ctx->log_endok();
|
||||
} catch (Exception $e) {
|
||||
if ($database) {
|
||||
if ($database && $database->transaction===true) {
|
||||
$database->rollback();
|
||||
}
|
||||
_fatal_error($e);
|
||||
|
|
Reference in a new issue