mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
oopsie
git-svn-id: file:///svn/phpbb/trunk@4839 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7aaf5a67a4
commit
884381d11b
1 changed files with 2 additions and 1 deletions
|
@ -864,9 +864,10 @@ function save_profile_field($field_type, $field_ident)
|
||||||
$profile_sql = $profile_lang = $empty_lang = $profile_lang_fields = array();
|
$profile_sql = $profile_lang = $empty_lang = $profile_lang_fields = array();
|
||||||
|
|
||||||
$sql = 'SELECT lang_id
|
$sql = 'SELECT lang_id
|
||||||
FROM ' . LANG_TABLE . '
|
FROM ' . LANG_TABLE . "
|
||||||
WHERE lang_iso = '" . $config['default_lang'] . "'";
|
WHERE lang_iso = '" . $config['default_lang'] . "'";
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$default_lang_id = (int) $db->sql_fetchfield('lang_id', 0, $result);
|
$default_lang_id = (int) $db->sql_fetchfield('lang_id', 0, $result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue