From: <var...@us...> - 2009-10-09 16:54:40
|
Revision: 7198 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7198&view=rev Author: vargenau Date: 2009-10-09 16:54:30 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Do not display table when no matches Modified Paths: -------------- trunk/lib/plugin/FuzzyPages.php Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:52:50 UTC (rev 7197) +++ trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:54:30 UTC (rev 7198) @@ -137,6 +137,9 @@ function formatTable(&$list, &$dbi) { + if (empty($list)) { + return HTML::p(fmt("No fuzzy matches with '%s'", $this->_searchterm)); + } $table = HTML::table(array('cellpadding' => 2, 'cellspacing' => 1, 'border' => 0, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |