Permalink
Browse files

Merge pull request #89 from Foxeronie/master

fix wrong mysqli error function
  • Loading branch information...
2 parents 05c8fd5 + 9400ac2 commit 073130d049c84d3f57d64794c8f93d11e1a94f59 @LarsMichelsen LarsMichelsen committed on GitHub Feb 15, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 share/server/core/classes/GlobalBackendndomy.php
@@ -180,10 +180,10 @@ 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_error($this->CONN))));
+ throw new BackendConnectionProblem(l('errorConnectingMySQL', Array('BACKENDID' => $this->backendId,'MYSQLERR' => mysqli_connect_error($this->CONN))));
return FALSE;
}

0 comments on commit 073130d

Please sign in to comment.