diff --git a/application/modules/opac/controllers/RechercheController.php b/application/modules/opac/controllers/RechercheController.php
index c4f5031d95187b7efbafc540970864543aa6e3f8..49078d297094f282126e87656822672adb332b5e 100644
--- a/application/modules/opac/controllers/RechercheController.php
+++ b/application/modules/opac/controllers/RechercheController.php
@@ -119,7 +119,7 @@ class RechercheController extends ZendAfi_Controller_Action {
   protected function _runSearchAndRender($criteres_recherche) {
     $search_start_time = microtime(true);
 
-    $search_result = $this->moteur->lancerRecherche($criteres_recherche);
+    $this->view->search_result = $search_result = $this->moteur->lancerRecherche($criteres_recherche);
 
     $this->_logSearch();
 
@@ -131,21 +131,17 @@ class RechercheController extends ZendAfi_Controller_Action {
 
     $this->preferences['liste_format'] = $this->_getParam('liste_format', $this->preferences['liste_format']);
 
-    if (!$search_result->isError())
-      $this->addHistoRecherche($criteres_recherche);
-
     $this->view->titre = $this->getTitreRechercheSimple($criteres_recherche);
 
     if($criteres_recherche->getPertinence())
       $this->view->titre .= $this->_(' (recherche élargie triée par pertinence)');
 
-    $this->view->search_duration = microtime(true) - $search_start_time;
-
-    $this->view->search_result = $search_result
-      ->setDuration($this->view->search_duration)
+    $search_result
+      ->setDuration(microtime(true) - $search_start_time)
       ->setSettings($this->preferences);
 
-    $this->addHistoRecherche($criteres_recherche);
+    if (!$search_result->isError())
+      $this->addHistoRecherche($criteres_recherche);
   }