From 9d42d0e2f0fc70b26cffec647f7d50c00051818d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 5 Mar 2020 22:13:32 -0500 Subject: [PATCH] silence warning when no language is set --- web/includes/lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/lang.php b/web/includes/lang.php index a567f7273..78a64a0e1 100644 --- a/web/includes/lang.php +++ b/web/includes/lang.php @@ -33,7 +33,7 @@ function loadLanguage($prefix='') { if ( $prefix ) $prefix = $prefix.'/'; - if ( isset($user['Language']) ) { + if ( isset($user['Language']) and $user['Language'] ) { $userLangFile = $prefix.'lang/'.$user['Language'].'.php'; if ( file_exists($userLangFile) ) {