Skip to content

Commit

Permalink
Update modLexicon.php
Browse files Browse the repository at this point in the history
Sanity check to prevent PHP error if $_SESSION is not set
  • Loading branch information
BobRay committed Feb 6, 2021
1 parent 652d21e commit 9a17b82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/Revolution/modLexicon.php
Expand Up @@ -186,6 +186,7 @@ public function load()
$topics = func_get_args(); /* allow for dynamic number of lexicons to load */

if ($this->modx->context && $this->modx->context->get('key') == 'mgr') {
$_SESSION = isset($_SESSION) ? $_SESSION : [];
$defaultLanguage = $this->modx->getOption('manager_language', $_SESSION,
$this->modx->getOption('cultureKey', null, 'en'));
} else {
Expand Down

0 comments on commit 9a17b82

Please sign in to comment.