Skip to content

Commit

Permalink
Don't overwrite existing setting, set if not existing (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 authored Nov 29, 2024
1 parent efc5bf0 commit d36f086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/modules/user/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ public function getUpdate(string $installedVersion): string
// Add new setting for comments on profiles (globally) and allow them by default.
$databaseConfig = new \Ilch\Config\Database($this->db());

if ($databaseConfig->get('user_commentsOnProfiles') === '') {
if ($databaseConfig->get('user_commentsOnProfiles') !== '0') {
$databaseConfig->set('user_commentsOnProfiles', '1');
}
break;
Expand Down

0 comments on commit d36f086

Please sign in to comment.