mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Forgot to delete watched topics when a topic is deleted
git-svn-id: file:///svn/phpbb/trunk@1073 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cdc1597550
commit
a848bfd69e
1 changed files with 9 additions and 1 deletions
|
@ -301,12 +301,20 @@ switch($mode)
|
|||
$sql = "DELETE
|
||||
FROM " . VOTE_USERS_TABLE . "
|
||||
WHERE vote_id IN ($vote_id_sql)";
|
||||
if( !$result = $db->sql_query($sql, END_TRANSACTION) )
|
||||
if( !$result = $db->sql_query($sql) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not delete vote users", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "DELETE
|
||||
FROM " . TOPICS_WATCH_TABLE . "
|
||||
WHERE topic_id IN ($topic_id_sql)";
|
||||
if( !$result = $db->sql_query($sql, END_TRANSACTION) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not delete watched post list", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
sync("forum", $forum_id);
|
||||
|
||||
if( !empty($topic_id) )
|
||||
|
|
Loading…
Add table
Reference in a new issue