Skip to content

Commit

Permalink
Changed comparison of host and charset with defaults instead of empty…
Browse files Browse the repository at this point in the history
… values
  • Loading branch information
sjstoelting committed Apr 5, 2012
1 parent 40687ef commit 78f6581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/ez_sql_mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function connect($dbuser='', $dbpassword='', $dbhost='localhost', $charse

$this->dbuser = empty($dbuser) ? $this->dbuser : $dbuser;
$this->dbpassword = empty($dbpassword) ? $this->dbpassword : $dbpassword;
$this->dbhost = empty($dbhost) ? $this->dbhost : $dbhost;
$this->dbhost = $dbhost!='localhost' ? $this->dbhost : $dbhost;
$this->charset = empty($charset) ? $this->charset : $charset;

// Must have a user and a password
Expand Down

0 comments on commit 78f6581

Please sign in to comment.