task #5 : amélioration des performances pour la recherche de fiche

This commit is contained in:
Dany De Bontridder 2010-10-29 22:55:20 +00:00
parent 451edfe856
commit 5f3dceea42

View file

@ -1565,12 +1565,8 @@ class Fiche
$sql='select f_id from fiche where fd_id=$1 ';
}
$array=$p_cn->get_array($sql,array($pFd_id));
if ( empty ($array) ) return null;
foreach ($array as $ret )
{
$r[]=new Fiche($p_cn,$ret['f_id']);
}
return $r;
return $array;
}
/*!\brief check if a card is used
*\return return true is a card is used otherwise false