[Fusionforge-commits] r13101 - branches/Branch_5_1/src/www/search/include/renderers

Roland Mas lolando at fusionforge.org
Wed Apr 13 10:32:55 CEST 2011


Author: lolando
Date: 2011-04-13 10:32:54 +0200 (Wed, 13 Apr 2011)
New Revision: 13101

Modified:
   branches/Branch_5_1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
Log:
Fixed display of query if search returns no results

Modified: branches/Branch_5_1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
===================================================================
--- branches/Branch_5_1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php	2011-04-12 20:42:47 UTC (rev 13100)
+++ branches/Branch_5_1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php	2011-04-13 08:32:54 UTC (rev 13101)
@@ -182,7 +182,6 @@
 	function getPartResult($renderer, $section, $title='') {
 		$result = '';
 		$renderer->searchQuery->executeQuery();
-		$query = NULL;
 		
 		if ($title === '')
 			$title = $section;
@@ -194,9 +193,9 @@
 			$result .= $renderer->getRows();			
 			$result .= $GLOBALS['HTML']->listTableBottom();			
 		} elseif(method_exists($renderer, 'getSections') && (count($renderer->getSections($this->groupId)) == 0)) {
-			$result .= '<p>'.sprintf(_('No matches found for <em>%s</em> - No sections available (check your permissions)'), $query['words']).'</p>';
+			$result .= '<p>'.sprintf(_('No matches found for <em>%s</em> - No sections available (check your permissions)'), $this->words).'</p>';
 		} else {
-			$result .= '<p>'.sprintf(_('No matches found for <em>%s</em>'), $query['words']).'</p>';
+			$result .= '<p>'.sprintf(_('No matches found for <em>%s</em>'), $this->words).'</p>';
 		}
 		return $result;
 	}




More information about the Fusionforge-commits mailing list