Modification sur la méthode status
This commit is contained in:
parent
c13b3011c2
commit
360329d707
@ -2582,11 +2582,11 @@ class Entreprise extends WsScore
|
||||
//Test connexion à la base de données
|
||||
$db = new WDB('jo');
|
||||
if ($db === false) {
|
||||
$error->statusCode = 1;
|
||||
$error->statusMsg = 'Erreur critique';
|
||||
$error->statusCode = 9000;
|
||||
$error->statusMsg = $this->listError['9000'];
|
||||
} else {
|
||||
$error->statusCode = 0;
|
||||
$error->statusMsg = 'Services disponible (beta)';
|
||||
$error->statusCode = 3000;
|
||||
$error->statusMsg = $this->listError['3000'];
|
||||
}
|
||||
return $error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user