Fix php notice when global lang does not exist

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-09 16:25:03 +01:00
parent ed48153e7b
commit 612e501086
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -331,7 +331,7 @@ class Core
]; ];
$lang = 'en'; $lang = 'en';
if (in_array($GLOBALS['lang'], $php_doc_languages)) { if (isset($GLOBALS['lang']) && in_array($GLOBALS['lang'], $php_doc_languages)) {
$lang = $GLOBALS['lang']; $lang = $GLOBALS['lang'];
} }