silence warning when no language is set

This commit is contained in:
Isaac Connor 2020-03-05 22:13:32 -05:00
parent b3a8ac0b2a
commit 9d42d0e2f0
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function loadLanguage($prefix='') {
if ( $prefix ) if ( $prefix )
$prefix = $prefix.'/'; $prefix = $prefix.'/';
if ( isset($user['Language']) ) { if ( isset($user['Language']) and $user['Language'] ) {
$userLangFile = $prefix.'lang/'.$user['Language'].'.php'; $userLangFile = $prefix.'lang/'.$user['Language'].'.php';
if ( file_exists($userLangFile) ) { if ( file_exists($userLangFile) ) {