Skip to content

Commit f437fd2

Browse files
committed
Fix erroneous variables from 85bc9fc
1 parent d3c8134 commit f437fd2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

system/database/drivers/mysql/mysql_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function db_connect($persistent = FALSE)
153153
{
154154
log_message('error', "Database: Unable to set the configured connection charset ('{$this->char_set}').");
155155
$this->close();
156-
return ($this->db->debug) ? $this->display_error('db_unable_to_set_charset', $charset) : FALSE;
156+
return ($this->db->debug) ? $this->display_error('db_unable_to_set_charset', $this->char_set) : FALSE;
157157
}
158158

159159
if ($this->stricton)

system/database/drivers/mysqli/mysqli_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function db_connect($persistent = FALSE)
177177
{
178178
log_message('error', "Database: Unable to set the configured connection charset ('{$this->char_set}').");
179179
$mysqli->close();
180-
return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $charset) : FALSE;
180+
return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $this->char_set) : FALSE;
181181
}
182182

183183
return $mysqli;

system/database/drivers/postgre/postgre_driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ public function db_connect($persistent = FALSE)
163163
return FALSE;
164164
}
165165

166-
if (pg_set_client_encoding($this->conn_id, $charset) !== 0)
166+
if (pg_set_client_encoding($this->conn_id, $this->char_set) !== 0)
167167
{
168168
log_message('error', "Database: Unable to set the configured connection charset ('{$this->char_set}').");
169169
pg_close($this->conn_id);
170-
return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $charset) : FALSE;
170+
return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $this->char_set) : FALSE;
171171
}
172172

173173
empty($this->schema) OR $this->simple_query('SET search_path TO '.$this->schema.',public');

0 commit comments

Comments
 (0)