From 451edfe8561b3dca673b6af5f2eb822474a3cf3f Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 29 Oct 2010 22:54:12 +0000 Subject: [PATCH] =?UTF-8?q?task=20#5=20:=20am=C3=A9lioration=20des=20perfo?= =?UTF-8?q?rmances=20pour=20la=20recherche=20de=20fiche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/class_fiche_def.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_fiche_def.php b/include/class_fiche_def.php index c64a47a25..d3103e056 100644 --- a/include/class_fiche_def.php +++ b/include/class_fiche_def.php @@ -657,8 +657,9 @@ class Fiche_Def if ( $aFiche != null ) { /* check if the card is used */ - foreach ($aFiche as $fiche) + foreach ($aFiche as $dfiche) { + $fiche=new Fiche($this->cn,$dfiche['f_id']); /* if the card is not used then remove it otherwise increment remains */ if ( $fiche->is_used() == false )