You've already forked phpmyadmin
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:
@@ -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'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user