From fdb26afc1b81db66c3129de9454f4d4ead4e8c45 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Jan 2024 22:22:11 +0000 Subject: [PATCH] database is always set at startup --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 2ef1d2e8..63470ae2 100644 --- a/index.php +++ b/index.php @@ -100,7 +100,7 @@ try { } $exit_code = 0; } catch (\Exception $e) { - if ($database && $database->is_transaction_open()) { + if ($database->is_transaction_open()) { $database->rollback(); } _fatal_error($e);