Permalink
Browse files

fix port var position in mysqli_connect

  • Loading branch information...
1 parent a96c9d1 commit 9400ac20ef6a452fc40b970a83dccbfca0179738 Patrick Ihle committed Feb 15, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 share/server/core/classes/GlobalBackendndomy.php
@@ -180,7 +180,7 @@ private function connectDB() {
// don't want to see mysql errors from connecting - only want our error messages
$oldLevel = error_reporting(0);
- $this->CONN = mysqli_connect($this->dbHost.':'.$this->dbPort, $this->dbUser, $this->dbPass);
+ $this->CONN = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass, '', $this->dbPort);
if(!$this->CONN){
throw new BackendConnectionProblem(l('errorConnectingMySQL', Array('BACKENDID' => $this->backendId,'MYSQLERR' => mysqli_connect_error($this->CONN))));

0 comments on commit 9400ac2

Please sign in to comment.