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:
Paul S. Owen 2002-03-20 14:56:11 +00:00
parent d75d6e8ebe
commit fc966546d7

View file

@ -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;
}
}