X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=3cd0a45a7b05ca64ac3ca9b48d978f9413def41c;hb=a4a22e2dee5906624847d44440ce6f901d4192f4;hp=672c11a4f49097342f8a3d78fd16074ab6ce7ad7;hpb=33a8d2bc3dfb1e665717892cd113c6ae4dd6a2b4;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; +}