#193891 by mvc: fix NOTICE in database.mysqli.inc because of possibly missing port number
parent
a069d06465
commit
a989f6cd50
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue