From 5459f330773afbdc867180c6c77b23d05b058224 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Tue, 24 Jan 2012 21:51:28 +0100 Subject: [PATCH] app variable can possibly not be set, causing a PHP error --- components/com_finder/views/search/tmpl/default_results.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/com_finder/views/search/tmpl/default_results.php b/components/com_finder/views/search/tmpl/default_results.php index 8f884fe30c26f..14816414bca31 100644 --- a/components/com_finder/views/search/tmpl/default_results.php +++ b/components/com_finder/views/search/tmpl/default_results.php @@ -14,11 +14,11 @@ JHtml::_('behavior.highlighter', $this->query->highlight); } -// Display the suggested search if it is different from the current search. -if (($this->suggested && $this->params->get('show_suggested_query', 1)) || ($this->explained && $this->params->get('show_explained_query', 1))): - // Get the application object. $app = JFactory::getApplication(); + +// Display the suggested search if it is different from the current search. +if (($this->suggested && $this->params->get('show_suggested_query', 1)) || ($this->explained && $this->params->get('show_explained_query', 1))): ?>