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