From 6524a49cb9f31dd24ac1077a717876a1c1565a94 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 28 Nov 2011 12:38:59 +0000 Subject: [PATCH] Protection de la boucle --- .../views/default/scripts/saisie/form.phtml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/application/views/default/scripts/saisie/form.phtml b/application/views/default/scripts/saisie/form.phtml index c1d828cba..2edbdd607 100644 --- a/application/views/default/scripts/saisie/form.phtml +++ b/application/views/default/scripts/saisie/form.phtml @@ -84,12 +84,14 @@ if (count($this->ListeTribunaux)>0) { if (count($this->tabEvent)>0) { foreach($this->tabEvent as $key => $event) { $select = ''; - foreach($this->saisie['even'] as $item){ - if ($item->CodeEven==$key){ - $select = ' selected'; - break; - } - } + if (isset($this->saisie) && count($this->saisie)>0){ + foreach($this->saisie['even'] as $item){ + if ($item->CodeEven==$key){ + $select = ' selected'; + break; + } + } + } $display = true; /*if ( isset($inEditDialog) && $inEditDialog === true && empty($select) ){ $display = false;