Entreprise : remove Metier_Db_Util

This commit is contained in:
Michael RICOIS 2017-03-15 16:15:06 +01:00
parent 4e3714c3f9
commit 62761b4baa
2 changed files with 16 additions and 12 deletions

View File

@ -4189,15 +4189,17 @@ class Entreprise extends Scores_Ws_Server
$_SERVER['PHP_AUTH_USER'].", hash:".$_SERVER['PHP_AUTH_PW']);
$error = new StatusReturn();
//Test connexion à la base de données
$db = new Metier_Util_Db();
if (!$db) {
$error->statusCode = 9000;
$error->statusMsg = $this->listError['9000'];
$this->conn->connect();
if ($this->conn->isConnected()) {
$error->statusCode = 3000;
$error->statusMsg = $this->listError['3000'];
} else {
$error->statusCode = 3000;
$error->statusMsg = $this->listError['3000'];
$error->statusCode = 9000;
$error->statusMsg = $this->listError['9000'];
}
return $error;
}

View File

@ -5534,15 +5534,17 @@ class Entreprise extends Scores_Ws_Server
$_SERVER['PHP_AUTH_USER'].", hash:".$_SERVER['PHP_AUTH_PW']);
$error = new StatusReturn();
//Test connexion à la base de données
$db = new Metier_Util_Db();
if (!$db) {
$error->statusCode = 9000;
$error->statusMsg = $this->listError['9000'];
$this->conn->connect();
if ($this->conn->isConnected()) {
$error->statusCode = 3000;
$error->statusMsg = $this->listError['3000'];
} else {
$error->statusCode = 3000;
$error->statusMsg = $this->listError['3000'];
$error->statusCode = 9000;
$error->statusMsg = $this->listError['9000'];
}
return $error;
}