task #5 : amélioration des performances pour la recherche de fiche
This commit is contained in:
parent
451edfe856
commit
5f3dceea42
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue