From 2420c979f8fb7b168baec791d3e230b45c0c6924 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 19 Sep 2016 13:38:59 -0700 Subject: [PATCH] Fixes #1831 - MySQL alternate port fix. --- e107_handlers/mysql_class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 15006b2db..9e5bc5077 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -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