diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 86b342c982..50b1d1f52d 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -280,6 +280,7 @@ p a {
[Fix] Cron now uses a locking variable to make sure it does not spawn too many webserver processes (Bug #12741)
[Fix] Cached stylesheet now supporting gzip compression
[Fix] Added link to inbox for deleted PMs (Bug #13813)
+ [Fix] Re-syncing the board stats also refreshes the newest user (Bug #13831)
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 0de214af7e..5f1e32fb51 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -151,6 +151,12 @@ class acp_main
$result = $db->sql_query($sql);
set_config('upload_dir_size', (int) $db->sql_fetchfield('stat'), true);
$db->sql_freeresult($result);
+
+ if (!function_exists('update_last_username'))
+ {
+ include($phpbb_root_path . "includes/functions_user.$phpEx");
+ }
+ update_last_username();
add_log('admin', 'LOG_RESYNC_STATS');
break;