noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/04: Bug : CARD -> toutes les fiches ne fo


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/04: Bug : CARD -> toutes les fiches ne fonctionnent pas si première cat.vide
Date: Mon, 29 Feb 2016 12:00:32 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit baad6aaec596321954683b3752c5ad1cddf61b9e
Author: Dany De Bontridder <address@hidden>
Date:   Mon Feb 29 12:06:17 2016 +0100

    Bug : CARD -> toutes les fiches ne fonctionnent pas si première cat.vide
---
 include/fiche.inc.php |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 293c0c2..e419699 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 '<div class="content">';
-       echo '<h2 class="info2"> '._('Aucune fiche trouvée').'</h2>';
-       echo $str_add_card;
-        echo '</div>';
-       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 '<div class="content">';
+       echo '<h2 class="info2"> '._('Aucune fiche trouvée').'</h2>';
+       echo $str_add_card;
+        echo '</div>';
+       return;
+}
+
 echo '<div class="content">';
 /* * 
*********************************************************************************************************************************
  * Liste



reply via email to

[Prev in Thread] Current Thread [Next in Thread]