Entreprise : remove Metier_Db_Util
This commit is contained in:
parent
4e3714c3f9
commit
62761b4baa
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user