Protection array

This commit is contained in:
Michael RICOIS 2011-12-12 12:30:43 +00:00
parent 0d83a49830
commit 4e31eee192

View File

@ -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'];