1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

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

View File

@@ -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'];
}