From c62d4ef71bcc5fbc733381d721f0f3b010cea3c5 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 1 Oct 2005 17:50:15 +0000 Subject: [PATCH] Undefined variable svn path=/trunk/boinc/; revision=8399 --- html/inc/translation.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/inc/translation.inc b/html/inc/translation.inc index 7330740a7f..82becbf567 100644 --- a/html/inc/translation.inc +++ b/html/inc/translation.inc @@ -384,7 +384,9 @@ if (file_exists($lang_language_dir.$lang_compiled_dir."language_interface.inc")) } else { $language_string = ''; } - $language_string .= strtolower($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]); + if (isset($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"])) { + $language_string .= strtolower($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]); + } //Find out which language to use by iterating trough list //The list is commaseperated, so split it into an array of the following type: