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 )