Skip to content

Commit

Permalink
Fixing Tab issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davoult authored Feb 28, 2020
1 parent de8e206 commit effaf43
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/classes/Translator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public function __construct()
// Check if user default lang is defined
if(isset($_COOKIE['user_id'])){
$idUser =$_COOKIE['user_id'];
$conn = connexionDB($database_eonweb);
$stmt = $conn->prepare("SELECT user_language from users where user_id= :idUser");
$stmt->bindParam(':idUser', $idUser);
$stmt->execute();
$result = $stmt->fetch();
$lang=$result["user_language"];
$stmt=null;
$conn=null;
$conn = connexionDB($database_eonweb);
$stmt = $conn->prepare("SELECT user_language from users where user_id= :idUser");
$stmt->bindParam(':idUser', $idUser);
$stmt->execute();
$result = $stmt->fetch();
$lang=$result["user_language"];
$stmt=null;
$conn=null;
}

// Check if isset browser lang
Expand Down

0 comments on commit effaf43

Please sign in to comment.