Fix php notice when global lang does not exist
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
ed48153e7b
commit
612e501086
@ -331,7 +331,7 @@ class Core
|
||||
];
|
||||
|
||||
$lang = 'en';
|
||||
if (in_array($GLOBALS['lang'], $php_doc_languages)) {
|
||||
if (isset($GLOBALS['lang']) && in_array($GLOBALS['lang'], $php_doc_languages)) {
|
||||
$lang = $GLOBALS['lang'];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user