aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install.php')
-rw-r--r--phpBB/install.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/install.php b/phpBB/install.php
index fc4a0e9e35..0c2f0b768f 100644
--- a/phpBB/install.php
+++ b/phpBB/install.php
@@ -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