Skip to content

Commit

Permalink
use object notation for setting charset
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 23, 2016
1 parent ac25773 commit 06a1bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/dbmysql.class.php
Expand Up @@ -125,7 +125,7 @@ function connect($choice=NULL) {
$this->connected = false;
$this->error = 1;
} else {
mysqli_set_charset($this->dbh, isset($this->dbenc) ? $this->dbenc : "utf8");
$this->dbh->set_charset(isset($this->dbenc) ? $this->dbenc : "utf8");

if (GLPI_FORCE_EMPTY_SQL_MODE) {
$this->dbh->query("SET SESSION sql_mode = ''");
Expand Down

0 comments on commit 06a1bce

Please sign in to comment.