summaryrefslogtreecommitdiff
path: root/inc/funktion_lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/funktion_lang.php')
-rwxr-xr-xinc/funktion_lang.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/funktion_lang.php b/inc/funktion_lang.php
index d3a4832f..9a6dc220 100755
--- a/inc/funktion_lang.php
+++ b/inc/funktion_lang.php
@@ -2,7 +2,8 @@
function Get_Text ($TextID)
{
-if ($_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
+if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN";
+if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
GLOBAL $con;
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";