Skip to content

Commit

Permalink
Only force language to unembed issabel pbx if there is a valid issabe…
Browse files Browse the repository at this point in the history
…l session
  • Loading branch information
Nicolás committed Aug 31, 2023
1 parent 7969acf commit 08513ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup/var/www/html/admin/issabel_issabelpbx_auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
session_start();
}


$mylang = array('en'=>'en_US','es'=>'es_ES','br'=>'pt_BR');
$lang = get_language('../');

$finallang = isset($mylang[$lang])?$mylang[$lang]:$lang."_".strtoupper($lang);
setcookie("lang", $finallang);
if($user!='') {
$mylang = array('en'=>'en_US','es'=>'es_ES','br'=>'pt_BR');
$lang = get_language('../');
$finallang = isset($mylang[$lang])?$mylang[$lang]:$lang."_".strtoupper($lang);
setcookie("lang", $finallang);
}

$pDB = new paloDB($dsnAsterisk);

Expand Down

0 comments on commit 08513ce

Please sign in to comment.