Skip to content
This repository was archived by the owner on Mar 10, 2018. It is now read-only.
5 changes: 3 additions & 2 deletions modules/sfLucene/lib/BasesfLuceneActions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ public function executeSearch($request)

$pager = new sfLucenePager($this->getLuceneInstance()->friendlyFind($query));

$this->query = $values['query'];

// were any results returned?
if ($pager->getNbResults() == 0)
{
// display error
// display error
$this->setTitleI18n('No Results Found');

$this->setTemplate('searchNoResults');
Expand All @@ -92,7 +94,6 @@ public function executeSearch($request)
$pager = $this->configurePager($pager, $form);

$this->pager = $pager;
$this->query = $values['query'];

$this->setTitleNumResults($pager);

Expand Down