From baad6aaec596321954683b3752c5ad1cddf61b9e Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 29 Feb 2016 12:06:17 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20:=20CARD=20->=20toutes=20les=20fiches=20n?= =?UTF-8?q?e=20fonctionnent=20pas=20si=20premi=C3=A8re=20cat.vide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fiche.inc.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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