diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 293c0c2da..e419699a8 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -119,14 +119,6 @@ $str_add_card = ($g_user->check_action(FICADD) == 1) ? $h_add_card_b->input() :
/*
* You show now the result
*/
-if ($array == null)
-{
- echo '
';
- echo '
'._('Aucune fiche trouvée').'
';
- echo $str_add_card;
- echo '';
- return;
-}
$allcard = (isset($_GET['allcard'])) ? 1 : 0;
if ( $allcard == 0 ){
@@ -135,6 +127,15 @@ if ( $allcard == 0 ){
echo h1($fiche_def->label,"");
echo h2($fiche_def->fd_description,"");
}
+if ($array == null && $allcard == 0)
+{
+ echo '';
+ echo '
'._('Aucune fiche trouvée').'
';
+ echo $str_add_card;
+ echo '';
+ return;
+}
+
echo '';
/* * *********************************************************************************************************************************
* Liste