diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-25 00:23:01 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-25 00:23:01 +0000 |
| commit | a848bfd69e4d0cee908b08835c770430e1838000 (patch) | |
| tree | 7f1acde72be01f4f23cc46bc2c0a56147c97a339 | |
| parent | cdc1597550cd76aecf67c1f6d254e398a1cb8396 (diff) | |
| download | forums-a848bfd69e4d0cee908b08835c770430e1838000.tar forums-a848bfd69e4d0cee908b08835c770430e1838000.tar.gz forums-a848bfd69e4d0cee908b08835c770430e1838000.tar.bz2 forums-a848bfd69e4d0cee908b08835c770430e1838000.tar.xz forums-a848bfd69e4d0cee908b08835c770430e1838000.zip | |
Forgot to delete watched topics when a topic is deleted
git-svn-id: file:///svn/phpbb/trunk@1073 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/modcp.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 486b928761..677d9ea1f7 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -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) ) |
