mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 21:28:52 +00: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:
parent
d75d6e8ebe
commit
fc966546d7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue