mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
can't be negative
git-svn-id: file:///svn/phpbb/trunk@7378 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6d6c6179a8
commit
1cffdb2d33
1 changed files with 6 additions and 3 deletions
|
@ -1160,7 +1160,8 @@ class fulltext_native extends search_backend
|
||||||
|
|
||||||
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
||||||
SET word_count = word_count - 1
|
SET word_count = word_count - 1
|
||||||
WHERE ' . $db->sql_in_set('word_id', $sql_in);
|
WHERE ' . $db->sql_in_set('word_id', $sql_in) . '
|
||||||
|
AND word_count > 0';
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
unset($sql_in);
|
unset($sql_in);
|
||||||
|
@ -1232,7 +1233,8 @@ class fulltext_native extends search_backend
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
||||||
SET word_count = word_count - 1
|
SET word_count = word_count - 1
|
||||||
WHERE ' . $db->sql_in_set('word_id', $title_word_ids);
|
WHERE ' . $db->sql_in_set('word_id', $title_word_ids) . '
|
||||||
|
AND word_count > 0';
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1240,7 +1242,8 @@ class fulltext_native extends search_backend
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
$sql = 'UPDATE ' . SEARCH_WORDLIST_TABLE . '
|
||||||
SET word_count = word_count - 1
|
SET word_count = word_count - 1
|
||||||
WHERE ' . $db->sql_in_set('word_id', $message_word_ids);
|
WHERE ' . $db->sql_in_set('word_id', $message_word_ids) . '
|
||||||
|
AND word_count > 0';
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue