This topic is locked
[SOLVED]

 $_SESSION["language"] by default empty?

5/11/2011 8:22:25 AM
PHPRunner General questions
M
mickna author

Hi,
is it possible, that $_SESSION["language"] is empty by default?
If I echo $_SESSION["language"] and have not made any selections (so default output is in english) it is empty.

If I change to German the variable has "German". If I switch back, the variable holds "English" but without any selections at login it is empty....
PR 5.3 (Build 7474)

J
Jane 5/11/2011

Yes it's possible.

I recommend you to use mlang_getcurrentlang() to check current language. More info:

http://xlinesoft.com/phprunner/docs/phprunner_session_variables.htm

M
mickna author 5/11/2011

I can fix that by adding

$_SESSION["language"] = mlang_getcurrentlang();


under Before process it works. But shouldn't the $_SESSION["language"] not hold "English" by default?....

M
mickna author 5/11/2011

Thank you Jane!