1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

re-display download notice

git-svn-id: file:///svn/phpbb/trunk@4401 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-08-13 16:58:48 +00:00
parent c0551af851
commit 66836ea525
3 changed files with 17 additions and 20 deletions

View File

@@ -1701,32 +1701,31 @@ function user_notification($mode, $subject, $forum_id, $topic_id, $post_id)
}
unset($email_list_ary);
if (sizeof($delete_ids))
{
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id IN (" . implode(', ', $delete_ids) . ")";
$db->sql_query($sql);
}
if ($update_watched_sql_topic != '')
{
$sql = "UPDATE " . TOPICS_WATCH_TABLE . "
$sql = 'UPDATE ' . TOPICS_WATCH_TABLE . "
SET notify_status = 1
WHERE topic_id = " . $topic_id . "
WHERE topic_id = $topic_id
AND user_id IN (" . $update_watched_sql_topic . ")";
$db->sql_query($sql);
}
if ($update_watched_sql_forum != '')
{
$sql = "UPDATE " . FORUMS_WATCH_TABLE . "
$sql = 'UPDATE ' . FORUMS_WATCH_TABLE . "
SET notify_status = 1
WHERE forum_id = " . $forum_id . "
WHERE forum_id = $forum_id
AND user_id IN (" . $update_watched_sql_forum . ")";
$db->sql_query($sql);
}
if (sizeof($delete_ids))
{
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id IN (" . implode(', ', $delete_ids) . ")";
$db->sql_query($sql);
}
}
// Topic Review