From fc966546d7b39503ffc6b7867e29d3fb659032ae Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 20 Mar 2002 14:56:11 +0000 Subject: 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 --- phpBB/posting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 31c4e92c21..7588281c05 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -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; } } -- cgit v1.2.1