1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00
This commit is contained in:
Jakub Vrana
2010-09-09 22:02:35 +02:00
parent fd5f49d3fe
commit 8455d05e3e
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ if (!defined("DRIVER")) {
}
function connect($server, $username, $password) {
mysqli_report(MYSQLI_REPORT_OFF); // stays between requests
mysqli_report(MYSQLI_REPORT_OFF); // stays between requests, not required since PHP 5.3.4
list($host, $port) = explode(":", $server, 2); // part after : is used for port or socket
return @$this->real_connect(
($server != "" ? $host : ini_get("mysqli.default_host")),