silence warning when no language is set
This commit is contained in:
parent
b3a8ac0b2a
commit
9d42d0e2f0
|
@ -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) ) {
|
||||||
|
|
Loading…
Reference in New Issue