Bug : CARD -> toutes les fiches ne fonctionnent pas si première cat.vide
This commit is contained in:
parent
5f728179d7
commit
baad6aaec5
1 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue