corrected query string in results instead of page

git-svn-id: http://yolanda.mister-muffin.de/svn@351 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-05-16 22:02:08 +00:00
parent 1201ba9daa
commit 9642cf2bba

View file

@ -26,13 +26,15 @@ if($query->param('query'))
{
#fill xml with search results
$page->appendChild(fill_results($dbquery, @args));
$page->setAttribute('query', $query->param('query'));
$doc->setDocumentElement($page);
#get all results
#get all found results
my @results = $doc->findnodes( "//results/result" );
#set result query in result's parent
$results[0]->parentNode->setAttribute('query', $query->param('query'));
#if result count is zero
if($#results == -1)
{