aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2004-02-23 15:14:55 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2004-02-23 15:14:55 +0000
commit884381d11be181e8031d7495ee127a2e3c923d9a (patch)
tree8ddcbc97790946924f8ca073d42597689dd2fdb9 /phpBB
parent7aaf5a67a4f89ef448ffd5fd0b2ed9f3ddb14aef (diff)
downloadforums-884381d11be181e8031d7495ee127a2e3c923d9a.tar
forums-884381d11be181e8031d7495ee127a2e3c923d9a.tar.gz
forums-884381d11be181e8031d7495ee127a2e3c923d9a.tar.bz2
forums-884381d11be181e8031d7495ee127a2e3c923d9a.tar.xz
forums-884381d11be181e8031d7495ee127a2e3c923d9a.zip
oopsie
git-svn-id: file:///svn/phpbb/trunk@4839 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/adm/admin_profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/adm/admin_profile.php b/phpBB/adm/admin_profile.php
index 999a63dd1b..f51fb22a5f 100644
--- a/phpBB/adm/admin_profile.php
+++ b/phpBB/adm/admin_profile.php
@@ -864,9 +864,10 @@ function save_profile_field($field_type, $field_ident)
$profile_sql = $profile_lang = $empty_lang = $profile_lang_fields = array();
$sql = 'SELECT lang_id
- FROM ' . LANG_TABLE . '
+ FROM ' . LANG_TABLE . "
WHERE lang_iso = '" . $config['default_lang'] . "'";
$result = $db->sql_query($sql);
+
$default_lang_id = (int) $db->sql_fetchfield('lang_id', 0, $result);
$db->sql_freeresult($result);