summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/index.php b/index.php
index 4b716f8..51aa24d 100644
--- a/index.php
+++ b/index.php
@@ -58,13 +58,12 @@ if($DBopen<0)
if(myisset('language') || isset($_SESSION['language']))
{
$language = 'en';
- if(isset($_SESSION['language']))
- $language = $_SESSION['language'];
+
if(myisset('language'))
- {
- $language = $_REQUEST['language'];
- $_SESSION['language'] = $language; /* overrule preferences */
- }
+ $language = $_REQUEST['language'];
+ else if(isset($_SESSION['language']))
+ $language = $_SESSION['language'];
+
switch($language)
{
case 'de':