mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02: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:
@@ -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,6 +356,8 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
|
|||||||
}
|
}
|
||||||
$searchset = $db->sql_fetchrowset($result);
|
$searchset = $db->sql_fetchrowset($result);
|
||||||
|
|
||||||
|
if(count($searchset))
|
||||||
|
{
|
||||||
//
|
//
|
||||||
// Output header
|
// Output header
|
||||||
//
|
//
|
||||||
@@ -378,9 +380,6 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
|
|||||||
"L_TOPIC" => $lang['Topic'])
|
"L_TOPIC" => $lang['Topic'])
|
||||||
);
|
);
|
||||||
|
|
||||||
if(count($searchset))
|
|
||||||
{
|
|
||||||
|
|
||||||
for($j = 1; $j < count($searchdata); $j++)
|
for($j = 1; $j < count($searchdata); $j++)
|
||||||
{
|
{
|
||||||
$search_string[] = "'(".preg_quote($searchdata[$j], "'").")'i";
|
$search_string[] = "'(".preg_quote($searchdata[$j], "'").")'i";
|
||||||
|
Reference in New Issue
Block a user