Added transaction check before main rollback

This commit is contained in:
Matthew Barbour 2019-06-25 10:07:46 -05:00 committed by Shish
parent ae24b5c2e8
commit cb436cc182

View file

@ -106,7 +106,7 @@ try {
}
$_shm_ctx->log_endok();
} catch (Exception $e) {
if ($database) {
if ($database && $database->transaction===true) {
$database->rollback();
}
_fatal_error($e);