Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Mar 23, 2019
1 parent 73eb3e0 commit a3bb042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/User_Location/User_Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getStart() {
$obj = $this->getDataObject();
$User_Location = self::getThisUserLocation();
if($obj->autoChangeLanguage){
if(empty($_SESSION['User_Location'])){
if(empty($_SESSION['User_Location']) && !empty($User_Location['country_code'])){
$_SESSION['language'] = strtolower($User_Location['country_code']);
$file = "{$global['systemRootPath']}locale/{$_SESSION['language']}.php";
if(file_exists($file)){
Expand Down

0 comments on commit a3bb042

Please sign in to comment.