From e0ec126c5d5e2039fd110bcd2bf833b314a59eab Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 1 Oct 2005 17:10:31 +0000 Subject: [PATCH] Eliminate PHP warning svn path=/trunk/boinc/; revision=8396 --- 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 90bcb005be..7330740a7f 100644 --- a/html/inc/translation.inc +++ b/html/inc/translation.inc @@ -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"]);