Skip to content

Commit

Permalink
Solved an error with a duplicated $
Browse files Browse the repository at this point in the history
  • Loading branch information
sjstoelting committed Apr 4, 2012
1 parent 4cd15ec commit d7ee423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/ez_sql_mysql.php
Expand Up @@ -136,7 +136,7 @@ public function connect($dbuser='', $dbpassword='', $dbhost='localhost', $charse
if ( empty($this->dbuser) ) {
$this->register_error($this->ezsql_mysql_str[1] . ' in ' . __FILE__ . ' on line ' . __LINE__);
$this->show_errors ? trigger_error($this->ezsql_mysql_str[1], E_USER_WARNING) : null;
} else if ( ! $this->dbh = @mysql_connect($this->dbhost, $$this->dbuser, $this->dbpassword, true, 131074) ) {
} else if ( ! $this->dbh = @mysql_connect($this->dbhost, $this->dbuser, $this->dbpassword, true, 131074) ) {
// Try to establish the server database handle
$this->register_error($this->ezsql_mysql_str[2] . ' in ' . __FILE__ . ' on line ' . __LINE__);
$this->show_errors ? trigger_error($this->ezsql_mysql_str[2], E_USER_WARNING) : null;
Expand Down

0 comments on commit d7ee423

Please sign in to comment.