Modification sur la méthode status

This commit is contained in:
Michael RICOIS 2011-02-08 09:53:03 +00:00
parent c13b3011c2
commit 360329d707

View File

@ -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;
}