mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/12527] Check whether the language exists
PHPBB3-12527
This commit is contained in:
parent
63e195d7f0
commit
ada9fc81a3
1 changed files with 5 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue