diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-15 21:36:31 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-15 21:36:31 +0000 |
commit | 68eb5bc3b350eca4cee602051faaea2d4a0dc774 (patch) | |
tree | 4613331120936163ecab92b707809f5eba6ca502 | |
parent | 6cbe3f48d822141aa3b8aadbdf8f6c1ae2936df2 (diff) | |
download | forums-68eb5bc3b350eca4cee602051faaea2d4a0dc774.tar forums-68eb5bc3b350eca4cee602051faaea2d4a0dc774.tar.gz forums-68eb5bc3b350eca4cee602051faaea2d4a0dc774.tar.bz2 forums-68eb5bc3b350eca4cee602051faaea2d4a0dc774.tar.xz forums-68eb5bc3b350eca4cee602051faaea2d4a0dc774.zip |
Sticky tape fell off, that's what happens when you don't buy the real thing...
git-svn-id: file:///svn/phpbb/trunk@1324 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/posting.php | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 8d7c9815d1..f3bf7052a9 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -167,22 +167,24 @@ function remove_common($percent, $word_id_list = array()) } } - $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " - WHERE word_id IN ($word_id_sql)"; - $result = $db->sql_query($sql); - if( !$result ) + if( $word_id_sql != "" ) { - message_die(GENERAL_ERROR, "Couldn't delete word list entry", "", __LINE__, __FILE__, $sql); - } + $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " + WHERE word_id IN ($word_id_sql)"; + $result = $db->sql_query($sql); + if( !$result ) + { + message_die(GENERAL_ERROR, "Couldn't delete word list entry", "", __LINE__, __FILE__, $sql); + } - $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ($word_id_sql)"; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't delete word match entry", "", __LINE__, __FILE__, $sql); + $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " + WHERE word_id IN ($word_id_sql)"; + $result = $db->sql_query($sql); + if( !$result ) + { + message_die(GENERAL_ERROR, "Couldn't delete word match entry", "", __LINE__, __FILE__, $sql); + } } - } } |