mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 22:45:40 +02:00
[ticket/12527] Check whether the language exists
PHPBB3-12527
This commit is contained in:
@ -110,6 +110,11 @@ class acp_language
|
||||
$lang_entries = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$lang_entries)
|
||||
{
|
||||
trigger_error($user->lang['LANGUAGE_PACK_NOT_EXIST'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
$lang_iso = $lang_entries['lang_iso'];
|
||||
|
||||
$template->assign_vars(array(
|
||||
|
Reference in New Issue
Block a user