Commit a989f6cd authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#193891 by mvc: fix NOTICE in database.mysqli.inc because of possibly missing port number

parent a069d064
......@@ -78,6 +78,9 @@ function db_connect($url) {
}
$url['host'] = urldecode($url['host']);
$url['path'] = urldecode($url['path']);
if (!isset($url['port'])) {
$url['port'] = NULL;
}
$connection = mysqli_init();
@mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment