PMCORE-4270 ExecuteQuery throwing Undefined array key 'port'
This commit is contained in:
10
thirdparty/creole/Creole.php
vendored
10
thirdparty/creole/Creole.php
vendored
@@ -316,12 +316,12 @@ class Creole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// some values can be copied directly
|
// some values can be copied directly
|
||||||
$parsed['phptype'] = @$info['scheme'];
|
$parsed['phptype'] = $info['scheme'] ?? '';
|
||||||
$parsed['username'] = @$info['user'];
|
$parsed['username'] = $info['user'] ?? '';
|
||||||
$parsed['password'] = @$info['pass'];
|
$parsed['password'] = $info['pass'] ?? '';
|
||||||
$parsed['port'] = @$info['port'];
|
$parsed['port'] = $info['port'] ?? '';
|
||||||
|
|
||||||
$host = @$info['host'];
|
$host = $info['host'] ?? '';
|
||||||
if (false !== ($pluspos = strpos($host, '+'))) {
|
if (false !== ($pluspos = strpos($host, '+'))) {
|
||||||
$parsed['protocol'] = substr($host,0,$pluspos);
|
$parsed['protocol'] = substr($host,0,$pluspos);
|
||||||
if ($parsed['protocol'] === 'unix') {
|
if ($parsed['protocol'] === 'unix') {
|
||||||
|
|||||||
Reference in New Issue
Block a user