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