diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-20 14:56:11 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-20 14:56:11 +0000 |
commit | fc966546d7b39503ffc6b7867e29d3fb659032ae (patch) | |
tree | 540a8cda39bbce4bfc2fd47a67039094ede3aa2b /phpBB/posting.php | |
parent | d75d6e8ebe10418e5711eacda12a9da6c80387ac (diff) | |
download | forums-fc966546d7b39503ffc6b7867e29d3fb659032ae.tar forums-fc966546d7b39503ffc6b7867e29d3fb659032ae.tar.gz forums-fc966546d7b39503ffc6b7867e29d3fb659032ae.tar.bz2 forums-fc966546d7b39503ffc6b7867e29d3fb659032ae.tar.xz forums-fc966546d7b39503ffc6b7867e29d3fb659032ae.zip |
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
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files 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; } } |