X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=3cd0a45a7b05ca64ac3ca9b48d978f9413def41c;hb=7b02585b978f7aef9d5c5a2c5d2b238cb674a4b7;hp=672c11a4f49097342f8a3d78fd16074ab6ce7ad7;hpb=b3226e11ac23e6487cb9539bc73c66fe6627ee44;p=friendica.git diff --git a/update.php b/update.php index 672c11a4f4..3cd0a45a7b 100644 --- a/update.php +++ b/update.php @@ -79,7 +79,7 @@ function update_1298() $a = new \stdClass(); $a->strings = []; - // First we get the the localizations + // First we get the localizations if (file_exists('view/lang/$lang/strings.php')) { include 'view/lang/$lang/strings.php'; } @@ -1315,3 +1315,14 @@ function update_1516() return Update::SUCCESS; } + +function update_1518() +{ + $users = DBA::select('user', ['uid']); + while ($user = DBA::fetch($users)) { + Contact::updateSelfFromUserID($user['uid']); + } + DBA::close($users); + + return Update::SUCCESS; +}