Only one search result is returned. [message #30152] |
Tue, 07 February 2006 08:18 |
stoph
Messages: 7 Registered: February 2006
Karma: 0
|
Junior Member |
|
|
Ah, sorry, wrong board. Please move it to bugs
I am using version 2.7.4.
If i do a search only one sesult is returned.
It does its job if i change the lines from 147 in /src/search.php.t
to the following:
$search_data = '{TEMPLATE: no_search_results}';
$page_pager = '';
} else {
$i = 0;
$search_data = '';
$tmp = array();
while ( $r = db_rowobj($c))
{
$tmp[] = $r;
}
foreach ( $tmp as $r) {
$search_data .= '{TEMPLATE: search_entry}';
}
unset($c);
Die Search results are prefetched into the $tmp array and postet within a foreach loop. The previous code ...
while ( $r = db_rowobj($c))
$search_data .= '{TEMPLATE: search_entry}';
}
unset($c);
... got me only one sesult.
[Updated on: Tue, 07 February 2006 08:22] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Only one search result is returned. [message #31734 is a reply to message #31731] |
Tue, 16 May 2006 00:48 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Unbuffered query use is not controlled by configuration options. When deemed safe they are used and in all other places buffered queries are utilized.
FUDforum Core Developer
|
|
|