Protection de la boucle

This commit is contained in:
Michael RICOIS 2011-11-28 12:38:59 +00:00
parent 9efd3d8ae5
commit 6524a49cb9

View File

@ -84,10 +84,12 @@ if (count($this->ListeTribunaux)>0) {
if (count($this->tabEvent)>0) { if (count($this->tabEvent)>0) {
foreach($this->tabEvent as $key => $event) { foreach($this->tabEvent as $key => $event) {
$select = ''; $select = '';
foreach($this->saisie['even'] as $item){ if (isset($this->saisie) && count($this->saisie)>0){
if ($item->CodeEven==$key){ foreach($this->saisie['even'] as $item){
$select = ' selected'; if ($item->CodeEven==$key){
break; $select = ' selected';
break;
}
} }
} }
$display = true; $display = true;