diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:21:49 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:21:49 +0000 |
commit | a989f6cd50a21c8cb41af3cba4c604502cc46345 (patch) | |
tree | 69b6b198a63c24ca9dd18b72e837bf48c536f8c8 | |
parent | a069d064659b31df881593a12f490c726e7b5586 (diff) | |
download | brdo-a989f6cd50a21c8cb41af3cba4c604502cc46345.tar.gz brdo-a989f6cd50a21c8cb41af3cba4c604502cc46345.tar.bz2 |
#193891 by mvc: fix NOTICE in database.mysqli.inc because of possibly missing port number
-rw-r--r-- | includes/database.mysqli.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/database.mysqli.inc b/includes/database.mysqli.inc index a4e5f4a11..ecd30248b 100644 --- a/includes/database.mysqli.inc +++ b/includes/database.mysqli.inc @@ -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); |