aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-10 18:14:47 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-10 18:14:47 +0000
commit7eff1949cac08271fd745feb20564ee7dc9bee80 (patch)
tree96a5c2bcfe38bb2cb032cfdd1e5f470d5a03dd43 /phpBB/install/database_update.php
parentc02215f7ccaf98174f87795e312273a1d85eaf44 (diff)
downloadforums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.gz
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.bz2
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.xz
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.zip
#5242
git-svn-id: file:///svn/phpbb/trunk@6742 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 92e0e593fa..5717dbc4d2 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -518,6 +518,16 @@ if (version_compare($current_version, '3.0.b4', '<'))
set_config('ldap_password', '');
set_config('ldap_user', '');
+ $sql = 'SELECT user_colour
+ FROM ' . USERS_TABLE . '
+ WHERE user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')
+ ORDER BY user_id DESC';
+ $result = $db->sql_query_limit($sql, 1);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ set_config('newest_user_colour', $row['user_colour'], true);
+
$no_updates = false;
}