Added transaction check before main rollback
This commit is contained in:
parent
ae24b5c2e8
commit
cb436cc182
@ -106,7 +106,7 @@ try {
|
|||||||
}
|
}
|
||||||
$_shm_ctx->log_endok();
|
$_shm_ctx->log_endok();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
if ($database) {
|
if ($database && $database->transaction===true) {
|
||||||
$database->rollback();
|
$database->rollback();
|
||||||
}
|
}
|
||||||
_fatal_error($e);
|
_fatal_error($e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user