Force MySQL port to int (for MySQL connector)

This commit is contained in:
Eric
2019-08-23 15:13:29 +02:00
parent 208a8723ff
commit 0625a01a4f

View File

@@ -303,11 +303,11 @@ class CMDBSource
$iConnectInfoCount = count($aConnectInfo);
if ($bUsePersistentConnection && ($iConnectInfoCount == 3))
{
$iPort = $aConnectInfo[2];
$iPort = (int)($aConnectInfo[2]);
}
else if (!$bUsePersistentConnection && ($iConnectInfoCount == 2))
{
$iPort = $aConnectInfo[1];
$iPort = (int)($aConnectInfo[1]);
}
else
{