Sat 11th Apr '09 1:23pm
|
|
|
|
Useless query when searching for posts
search.php, line 2619:
PHP Code:
$dotthreads = fetch_dot_threads_array($ids);
This is a useless query if you search for posts and dotthreads is enabled.
The function queries for replys in threads, which have the same id as the posts the user searched.
You could change this line to
PHP Code:
if ($search['showposts']) { $dotthreads = fetch_dot_threads_array($ids); }
(When searching for posts, $ids contains the postids, not the threadids)
I hope you are able to understand it ;)
Regards Surviver
|