mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Some updates which may have fixed some probs ...
git-svn-id: file:///svn/phpbb/trunk@373 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6f3d969459
commit
dffc9028ee
1 changed files with 22 additions and 23 deletions
|
@ -331,7 +331,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
|
||||||
$searchdata = gensearch_sql(stripslashes($querystring), $searchall);
|
$searchdata = gensearch_sql(stripslashes($querystring), $searchall);
|
||||||
$search_sql = $searchdata[0];
|
$search_sql = $searchdata[0];
|
||||||
|
|
||||||
if($search_sql != "( )")
|
if(!ereg("\([ ]*\)",$search_sql))
|
||||||
{
|
{
|
||||||
if($authorstring != "")
|
if($authorstring != "")
|
||||||
{
|
{
|
||||||
|
@ -356,30 +356,29 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
|
||||||
}
|
}
|
||||||
$searchset = $db->sql_fetchrowset($result);
|
$searchset = $db->sql_fetchrowset($result);
|
||||||
|
|
||||||
//
|
|
||||||
// Output header
|
|
||||||
//
|
|
||||||
include('includes/page_header.'.$phpEx);
|
|
||||||
|
|
||||||
$template->set_filenames(array(
|
|
||||||
"body" => "search_results_body.tpl",
|
|
||||||
"jumpbox" => "jumpbox.tpl")
|
|
||||||
);
|
|
||||||
$jumpbox = make_jumpbox();
|
|
||||||
$template->assign_vars(array(
|
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
|
||||||
);
|
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
|
||||||
"SEARCH_MATCHES" => count($searchset),
|
|
||||||
|
|
||||||
"L_TOPIC" => $lang['Topic'])
|
|
||||||
);
|
|
||||||
|
|
||||||
if(count($searchset))
|
if(count($searchset))
|
||||||
{
|
{
|
||||||
|
//
|
||||||
|
// Output header
|
||||||
|
//
|
||||||
|
include('includes/page_header.'.$phpEx);
|
||||||
|
|
||||||
|
$template->set_filenames(array(
|
||||||
|
"body" => "search_results_body.tpl",
|
||||||
|
"jumpbox" => "jumpbox.tpl")
|
||||||
|
);
|
||||||
|
$jumpbox = make_jumpbox();
|
||||||
|
$template->assign_vars(array(
|
||||||
|
"JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"SELECT_NAME" => POST_FORUM_URL)
|
||||||
|
);
|
||||||
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
$template->assign_vars(array(
|
||||||
|
"SEARCH_MATCHES" => count($searchset),
|
||||||
|
|
||||||
|
"L_TOPIC" => $lang['Topic'])
|
||||||
|
);
|
||||||
|
|
||||||
for($j = 1; $j < count($searchdata); $j++)
|
for($j = 1; $j < count($searchdata); $j++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue