diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php index 1162dabae..1ea6cbd85 100644 --- a/include/ajax/ajax_card.php +++ b/include/ajax/ajax_card.php @@ -391,16 +391,16 @@ case 'fs': /* Build the SQL and show result */ $sql=$fiche->build_sql($sql_array); - if ( strpos($sql," in ()") != 0) - { - $html=HtmlInput::anchor_close('search_card'); - $html.='
'.h2info(_('Recherche de fiche')).'
'; - $html.='

'; - $html.=_("Aucune catégorie de fiche ne correspond à". - " votre demande, le journal pourrait n'avoir accès à aucune fiche"); - $html.='

'; - break; - } + if ( strpos($sql," in ()") != 0) + { + $html=HtmlInput::anchor_close('search_card'); + $html.='
'.h2info(_('Recherche de fiche')).'
'; + $html.='

'; + $html.=_("Aucune catégorie de fiche ne correspond à". + " votre demande, le journal pourrait n'avoir accès à aucune fiche"); + $html.='

'; + break; + } /* We limit the search to MAX_SEARCH_CARD records */ $sql=$sql.' order by vw_name limit '.MAX_SEARCH_CARD; $a=$cn->get_array($sql);