Skip to content

Commit

Permalink
fix a 'language not exist' error
Browse files Browse the repository at this point in the history
  • Loading branch information
WuhuaChen committed Dec 10, 2019
1 parent 12e775e commit dafae6a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2.3/upload/catalog/controller/extension/module/lscache.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ protected function checkVary() {
$vary['currency'] = $this->session->data['currency'];
}

if($this->session->data['language']!=$this->config->get('config_language')){
if(isset($this->session->data['language']) && ($this->session->data['language']!=$this->config->get('config_language'))){
$vary['language'] = $this->session->data['language'];
}

Expand Down
2 changes: 1 addition & 1 deletion 3.0/upload/catalog/controller/extension/module/lscache.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function checkVary() {
$vary['currency'] = $this->session->data['currency'];
}

if($this->session->data['language']!=$this->config->get('config_language')){
if((isset($this->session->data['language'])) && ($this->session->data['language']!=$this->config->get('config_language'))){
$vary['language'] = $this->session->data['language'];
}

Expand Down
Binary file added package/lscache-opencart2.3-latest.ocmod.zip
Binary file not shown.
Binary file added package/lscache-opencart3.0-latest.ocmod.zip
Binary file not shown.

0 comments on commit dafae6a

Please sign in to comment.