1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Fixes #1831 - MySQL alternate port fix.

This commit is contained in:
Cameron 2016-09-19 13:38:59 -07:00
parent 237510df10
commit 2420c979f8

View File

@ -184,8 +184,12 @@ class e_db_mysql
$this->mySQLdefaultdb = $mySQLdefaultdb;
$this->mySQLPrefix = $mySQLPrefix;
$this->mySQLerror = false;
if(strpos($mySQLserver,':')!==false)
{
list($this->mySQLserver,$this->mySQLport) = explode(':',$mySQLserver,2);
}
if($this->pdo)
{
try