Skip to content
Snippets Groups Projects
Commit d8b80811 authored by llaffont's avatar llaffont
Browse files

Delete dead code on listeNotices if no result found

parent 12d0c431
Branches
Tags 7.9.17
No related merge requests found
......@@ -40,21 +40,10 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
$html = '<div class="liste_notices" >';
// Message d'erreur
if (!$notices || (array_key_exists('statut', $notices) && ($notices["statut"]=="erreur"))) {
$html.='<h2>'.$notices["erreur"].'</h2>';
if($notices["nb_mots"] > 1 and !$_REQUEST["pertinence"]) {
$html.=sprintf('<span>%s</span>', $this->translate()->_('Lancement de la recherche élargie à tous les mots en cours...'));
$html.=sprintf('<script>document.location="%s?pertinence=1"</script>',
$this->view->url(array('controller' => 'recherche',
'action' => 'simple')));
}
return $html.'</div>';
}
if (!$notices)
return $html.'<h2>'.$this->view->_('Aucune notice retournée').'</h2></div>';
if(!$nombre_resultats) return $html.'</div>';
$html .= $this->displayList($html,$notices,$preferences);
return ($html.'</div>');
return $html.$this->displayList($html,$notices,$preferences).'</div>';
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment