We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0091e commit 6f4a3caCopy full SHA for 6f4a3ca
1 file changed
inc/baseclass.class.php
@@ -60,8 +60,10 @@ public function __construct($config = [])
60
global $DB, $LANG;
61
62
//force MySQL DATE_FORMAT in user locale
63
- $query = "SET lc_time_names = '" . $_SESSION['glpilanguage'] . "'";
64
- $DB->doQuery($query);
+ $query = "SET lc_time_names = ?";
+ $stmt = $DB->prepare($query);
65
+ $stmt->bind_param("s", $_SESSION['glpilanguage']);
66
+ $stmt->execute();
67
68
if (empty($config)) {
69
return;
0 commit comments