This commit is contained in:
Shish 2024-01-15 23:00:36 +00:00
parent 60cfa5d6c2
commit 321cb62400

View file

@ -43,7 +43,7 @@ $userPage->onUserCreation(new UserCreationEvent("test", "test", "test", "test@te
// in mysql, CREATE TABLE commits transactions, so after the database
// upgrade we may or may not be inside a transaction depending on if
// any tables were created.
if(!$database->is_transaction_open()) {
if($database->is_transaction_open()) {
$database->commit();
}
$_tracer->end();