Skip to content

Commit

Permalink
Removed unused USE_PERSISTANT_DB constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Jan 19, 2020
1 parent c789767 commit 4a26ac5
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions e107_handlers/mysql_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,10 @@ public function db_Connect($mySQLserver, $mySQLuser, $mySQLpassword, $mySQLdefau
$this->mySQLPrefix = $mySQLPrefix;
$this->mySQLerror = false;


if(defined("USE_PERSISTANT_DB") && USE_PERSISTANT_DB == TRUE)
{
// No persistent link parameter permitted
if ( ! $this->mySQLaccess = @mysql_pconnect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword))
{
$this->mySQLlastErrText = mysql_error();
return 'e1';
}
}
else
if (!$this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
{
if ( ! $this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
{
$this->mySQLlastErrText = mysql_error();
return 'e1';
}
$this->mySQLlastErrText = mysql_error();
return 'e1';
}

$this->mySqlServerInfo = mysql_get_server_info(); // We always need this for db_Set_Charset() - so make generally available
Expand Down

0 comments on commit 4a26ac5

Please sign in to comment.