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);