PDO - host without port correction

This commit is contained in:
Dante
2015-04-06 10:22:43 -04:00
parent 3e52cc6a13
commit b1635a3f48
3 changed files with 2 additions and 5 deletions

View File

@@ -518,11 +518,9 @@ class indicatorsCalculator
G::loadClass('wsTools');
$currentWS = defined('SYS_SYS') ? SYS_SYS : 'Wokspace Undefined';
$workSpace = new workspaceTools($currentWS);
$host = $workSpace->dbHost;
$arrayHost = split(":", $workSpace->dbHost);
$host = "host=".$arrayHost[0];
$port = sizeof($arrayHost) > 0 ? ";port=".$arrayHost[1] : "";
$port = count($arrayHost) > 1 ? ";port=".$arrayHost[1] : "";
$db = ";dbname=".$workSpace->dbName;
$user = $workSpace->dbUser;
$pass = $workSpace->dbPass;