mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
Changed code so it stores total users in config table to remove a slightly costly query
git-svn-id: file:///svn/phpbb/trunk@2549 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -840,8 +840,18 @@ else
|
||||
{
|
||||
$error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . "<br /><br />";
|
||||
}
|
||||
|
||||
$sql = "UPDATE " . $table_prefix . "config
|
||||
SET config_value = '" . $admin_name . "'
|
||||
WHERE config_name = 'newest_username'";
|
||||
$result = $db->sql_query($sql);
|
||||
if( !$result )
|
||||
{
|
||||
$error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . "<br /><br />";
|
||||
}
|
||||
|
||||
|
||||
|
||||
$admin_pass_md5 = ( $confirm && $userdata['user_level'] == ADMIN ) ? $admin_pass1 : md5($admin_pass1);
|
||||
|
||||
$sql = "UPDATE " . $table_prefix . "users
|
||||
|
Reference in New Issue
Block a user