Code

Fixed undefined index, if session is invalid
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Feb 2006 05:30:53 +0000 (05:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Feb 2006 05:30:53 +0000 (05:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2700 594d385d-05f5-0310-b6e9-bd551577e9d8

html/logout.php

index fa34ff3c36a3dcf7ca2afa55da548bd4b241718e..911663708654f5178756814236e4136d5dd1e6d2 100644 (file)
@@ -47,7 +47,7 @@ if (isset($_SESSION['config'])){
 
 }else{
   /* Language setup */
-  if ($config->data['MAIN']['LANG'] == ""){
+  if ((!isset($config))||(empty($config->data['MAIN']['LANG']))){
     $lang= get_browser_language();
   } else {
     $lang= $config->data['MAIN']['LANG'];