X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=ce22a28d14e075a0aa3533e197b674f065361f1c;hb=5cf71baf551bf209e62cf13b16173bddcd76a0fc;hp=f04a4d5c5f009d12168dd824d4ed3e931310dbcb;hpb=19529e2aa19a41dae560c999f6f3dda4e319d722;p=friendica.git diff --git a/update.php b/update.php index f04a4d5c5f..ce22a28d14 100644 --- a/update.php +++ b/update.php @@ -1398,5 +1398,16 @@ function update_1535() } DI::config()->delete('system', 'compute_group_counts'); + return Update::SUCCESS; +} + +function update_1539() +{ + $users = DBA::select('user', ['uid'], ['account-type' => User::ACCOUNT_TYPE_COMMUNITY]); + while ($user = DBA::fetch($users)) { + User::setCommunityUserSettings($user['uid']); + } + DBA::close($users); + return Update::SUCCESS; } \ No newline at end of file