Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Save bytes

  • Loading branch information...
commit 0d427ad5a8330e63222c5ec8b3ac7b2c8566bb3a 1 parent 3ab6091
Jakub Vrána authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 adminer/drivers/mysql.inc.php
4 adminer/drivers/mysql.inc.php
@@ -18,8 +18,8 @@ function connect($server, $username, $password) {
18 18 list($host, $port) = explode(":", $server, 2); // part after : is used for port or socket
19 19 $return = @$this->real_connect(
20 20 ($server != "" ? $host : ini_get("mysqli.default_host")),
21   - ("$server$username" != "" ? $username : ini_get("mysqli.default_user")),
22   - ("$server$username$password" != "" ? $password : ini_get("mysqli.default_pw")),
  21 + ($server . $username != "" ? $username : ini_get("mysqli.default_user")),
  22 + ($server . $username . $password != "" ? $password : ini_get("mysqli.default_pw")),
23 23 null,
24 24 (is_numeric($port) ? $port : ini_get("mysqli.default_port")),
25 25 (!is_numeric($port) ? $port : null)

0 comments on commit 0d427ad

Please sign in to comment.
Something went wrong with that request. Please try again.