Skip to content

Commit 6f4a3ca

Browse files
authored
Merge commit from fork
1 parent 7e0091e commit 6f4a3ca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

inc/baseclass.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public function __construct($config = [])
6060
global $DB, $LANG;
6161

6262
//force MySQL DATE_FORMAT in user locale
63-
$query = "SET lc_time_names = '" . $_SESSION['glpilanguage'] . "'";
64-
$DB->doQuery($query);
63+
$query = "SET lc_time_names = ?";
64+
$stmt = $DB->prepare($query);
65+
$stmt->bind_param("s", $_SESSION['glpilanguage']);
66+
$stmt->execute();
6567

6668
if (empty($config)) {
6769
return;

0 commit comments

Comments
 (0)