From 360329d70732dc3f356d610bec6ddf6d6cfedc0b Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 8 Feb 2011 09:53:03 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20sur=20la=20m=C3=A9thode=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/WsScore/Entreprise/v0.2/Entreprise.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/WsScore/Entreprise/v0.2/Entreprise.php b/library/WsScore/Entreprise/v0.2/Entreprise.php index 72e1e9d5..b549c8f1 100644 --- a/library/WsScore/Entreprise/v0.2/Entreprise.php +++ b/library/WsScore/Entreprise/v0.2/Entreprise.php @@ -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; }