diff options
Diffstat (limited to 'phpBB/includes/functions_display.php')
| -rw-r--r-- | phpBB/includes/functions_display.php | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index ea77551fc4..ec348138f5 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1112,10 +1112,10 @@ function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id,  			{  				$is_watching = true; -				if ($notify_status) +				if ($notify_status != NOTIFY_YES)  				{  					$sql = 'UPDATE ' . $table_sql . " -						SET notify_status = 0 +						SET notify_status = " . NOTIFY_YES . "  						WHERE $where_sql = $match_id  							AND user_id = $user_id";  					$db->sql_query($sql); @@ -1134,7 +1134,7 @@ function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id,  					$is_watching = true;  					$sql = 'INSERT INTO ' . $table_sql . " (user_id, $where_sql, notify_status) -						VALUES ($user_id, $match_id, 0)"; +						VALUES ($user_id, $match_id, " . NOTIFY_YES . ')';  					$db->sql_query($sql);  					$message = $user->lang['ARE_WATCHING_' . strtoupper($mode)] . '<br /><br />' . sprintf($user->lang['RETURN_' . strtoupper($mode)], '<a href="' . $redirect_url . '">', '</a>');  				}  | 
