We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If logging is turned up a little in MODx, Lingua issues an extraneous warning:
[2021-12-02 12:45:25] (WARN @ /[path]/core/components/lingua/model/lingua/lingua.class.php : 711) PHP notice: Undefined variable: _SESSION
The affected line is: $langSessionValue = $_SESSION['cultureKey'];
A simple fix is: $langSessionValue = $_SESSION['cultureKey'] ?? null;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If logging is turned up a little in MODx, Lingua issues an extraneous warning:
[2021-12-02 12:45:25] (WARN @ /[path]/core/components/lingua/model/lingua/lingua.class.php : 711) PHP notice: Undefined variable: _SESSION
The affected line is:
$langSessionValue = $_SESSION['cultureKey'];
A simple fix is:
$langSessionValue = $_SESSION['cultureKey'] ?? null;
The text was updated successfully, but these errors were encountered: