aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-20 14:56:11 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-20 14:56:11 +0000
commitfc966546d7b39503ffc6b7867e29d3fb659032ae (patch)
tree540a8cda39bbce4bfc2fd47a67039094ede3aa2b /phpBB/posting.php
parentd75d6e8ebe10418e5711eacda12a9da6c80387ac (diff)
downloadforums-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.php4
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;
}
}