Eliminate PHP warning

svn path=/trunk/boinc/; revision=8396
This commit is contained in:
Bruce Allen 2005-10-01 17:10:31 +00:00
parent 14bbb16fb9
commit e0ec126c5d
1 changed files with 3 additions and 1 deletions

View File

@ -379,8 +379,10 @@ if (file_exists($lang_language_dir.$lang_compiled_dir."language_interface.inc"))
//Make a list of languages which the user prefers (by looking at cookies and browser settings)
//cookies have highest priority.
if ($_COOKIE['lang']){
if (isset($_COOKIE['lang'])){
$language_string = $_COOKIE['lang'].",";
} else {
$language_string = '';
}
$language_string .= strtolower($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]);