From cb436cc1824aa630016cd244efcc7e70134ddf64 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Tue, 25 Jun 2019 10:07:46 -0500 Subject: [PATCH] Added transaction check before main rollback --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ac46ca26..00a51305 100644 --- a/index.php +++ b/index.php @@ -106,7 +106,7 @@ try { } $_shm_ctx->log_endok(); } catch (Exception $e) { - if ($database) { + if ($database && $database->transaction===true) { $database->rollback(); } _fatal_error($e);