From 5f3dceea427ce2063c74704fffc6cc0c8dbd2756 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 29 Oct 2010 22:55:20 +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.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/class_fiche.php b/include/class_fiche.php index b2376f7a4..ca424cc2f 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -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