From 1c039c50b80b25cc5b81154ba85625a334e25084 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 9 Jan 2026 16:34:17 +0100 Subject: [PATCH] Fix created column on player save --- system/libs/pot/OTS_Player.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/libs/pot/OTS_Player.php b/system/libs/pot/OTS_Player.php index 457a4138..9ff72438 100644 --- a/system/libs/pot/OTS_Player.php +++ b/system/libs/pot/OTS_Player.php @@ -267,9 +267,6 @@ class OTS_Player extends OTS_Row_DAO $values = []; foreach ($columns as $column) { $value = $this->data[$column]; - if ($column == 'created') { - $value = time(); - } $values[$column] = $value; } @@ -280,7 +277,10 @@ class OTS_Player extends OTS_Row_DAO } // creates new player else { + $values['created'] = time(); + $player = PlayerModel::create($values); + // ID of new group $this->data['id'] = $player->id; }