diff --git a/application/controllers/SaisieController.php b/application/controllers/SaisieController.php index e6257a5a5..06984c86d 100644 --- a/application/controllers/SaisieController.php +++ b/application/controllers/SaisieController.php @@ -550,10 +550,12 @@ class SaisieController extends Zend_Controller_Action $jugement->dateJuge = $tabJugement['dateJuge']; $jugement->tribunal = $tabJugement['tribunal']; $jugement->even = array(); - foreach ( $tabJugement['even'] as $even ){ - $codeEven = new stdClass(); - $codeEven->code = $even; - $jugement->even[] = $codeEven; + if (count($tabJugement['even']>0)){ + foreach ( $tabJugement['even'] as $even ){ + $codeEven = new stdClass(); + $codeEven->code = $even; + $jugement->even[] = $codeEven; + } } $jugement->admin = $tabJugement['admin']; $jugement->mand = $tabJugement['mand'];