database is always set at startup

This commit is contained in:
Shish 2024-01-15 22:22:11 +00:00
parent e960f73fb6
commit fdb26afc1b

View file

@ -100,7 +100,7 @@ try {
} }
$exit_code = 0; $exit_code = 0;
} catch (\Exception $e) { } catch (\Exception $e) {
if ($database && $database->is_transaction_open()) { if ($database->is_transaction_open()) {
$database->rollback(); $database->rollback();
} }
_fatal_error($e); _fatal_error($e);