diff options
Diffstat (limited to 'phpBB/includes/acp/acp_main.php')
-rw-r--r-- | phpBB/includes/acp/acp_main.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 292d78973f..090ee0fe06 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -68,8 +68,8 @@ class acp_main if ($row = $db->sql_fetchrow($result)) { - set_config('newest_user_id', $row['user_id']); - set_config('newest_username', $row['username']); + set_config('newest_user_id', $row['user_id'], true); + set_config('newest_username', $row['username'], true); } $db->sql_freeresult($result); } @@ -368,7 +368,7 @@ class acp_main { while (($file = readdir($avatar_dir)) !== false) { - if ($file{0} != '.') + if ($file{0} != '.' && strpos($file, 'index.') === false) { $avatar_dir_size += filesize($phpbb_root_path . $config['avatar_path'] . '/' . $file); } |