From f6873b0607883de4effa3f3ca56f922c020e3db6 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 9 Nov 2010 08:21:01 +0000 Subject: [PATCH] Initialisation et valeur max --- library/WsScore/WsEntreprise.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/library/WsScore/WsEntreprise.php b/library/WsScore/WsEntreprise.php index 6ce0b289..950df2f9 100644 --- a/library/WsScore/WsEntreprise.php +++ b/library/WsScore/WsEntreprise.php @@ -296,10 +296,14 @@ class WsEntreprise exit; } - !isset($dep) ? $dep = 0 : ''; - !isset($actif) ? $actif = -1 : ''; - !isset($position) ? $position = 0 : ''; - !isset($nbRep) ? $nbRep = 20 : ''; + //Initialisation + if (!isset($dep)) { $dep = 0; } + if (!isset($actif)) { $actif = -1; } + if (!isset($position)) { $position = 0; } + if (!isset($nbRep)) { $nbRep = 20; } + + //Valeur max + if($nbRep > 200) { $nbRep = 200; } $departement = $dep; $error = new ErrorType();