Skip to content

Commit

Permalink
Fixed an undefined index error
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Dec 4, 2017
1 parent d37e2a8 commit fb82e27
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions public_html/lib-common.php
Expand Up @@ -8191,10 +8191,11 @@ function COM_getLanguageFromURL($url = '')
global $_CONF;

$retval = '';
$langid = COM_getLanguageIdFromURL($url);
if (!empty($langid)) {
if (is_array($_CONF['language_files']) && array_key_exists($langid, $_CONF['language_files'])) {
$retval = $_CONF['language_files'][$langid];
$langId = COM_getLanguageIdFromURL($url);
if (!empty($langId)) {
if (isset($_CONF['language_files']) && is_array($_CONF['language_files']) &&
array_key_exists($langId, $_CONF['language_files'])) {
$retval = $_CONF['language_files'][$langId];
}
}

Expand Down

0 comments on commit fb82e27

Please sign in to comment.