mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Extra check for logged in user when deciding whether to determine if user should be notified on reply
git-svn-id: file:///svn/phpbb/trunk@2375 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -374,7 +374,7 @@ if ( $submit || $refresh )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $mode != 'newtopic' )
|
||||
if ( $mode != 'newtopic' && $userdata['session_logged_in'] )
|
||||
{
|
||||
$sql = "SELECT topic_id
|
||||
FROM " . TOPICS_WATCH_TABLE . "
|
||||
@@ -389,7 +389,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
$notify_user = $userdata['user_notify'];
|
||||
$notify_user = ( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user