diff options
author | Ruslan Uzdenov <rxu@mail.ru> | 2009-08-17 13:25:04 +0000 |
---|---|---|
committer | Ruslan Uzdenov <rxu@mail.ru> | 2009-08-17 13:25:04 +0000 |
commit | b4297abf2a6aca7e6d3ffccbb61c096a5c590f86 (patch) | |
tree | df34fefd6e2ebc49c3fa7dbecf07abd95c252669 /phpBB/search.php | |
parent | 300f6868afc4ee53d97d289f85a0383b88ba377e (diff) | |
download | forums-b4297abf2a6aca7e6d3ffccbb61c096a5c590f86.tar forums-b4297abf2a6aca7e6d3ffccbb61c096a5c590f86.tar.gz forums-b4297abf2a6aca7e6d3ffccbb61c096a5c590f86.tar.bz2 forums-b4297abf2a6aca7e6d3ffccbb61c096a5c590f86.tar.xz forums-b4297abf2a6aca7e6d3ffccbb61c096a5c590f86.zip |
Fix bug #49525 - Search for unreads should require login
Authorised by: AcydBurn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10004 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index d913ca7ec9..3556c5b435 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -95,6 +95,13 @@ if ($keywords || $author || $author_id || $search_id || $submit) } } + // search for unread posts needs user to be logged in + // if topics tracking for guests is disabled + if ($search_id == 'unreadposts' && !$config['load_anon_lastread'] && !$user->data['is_registered']) + { + login_box('', $user->lang['LOGIN_EXPLAIN_UNREADSEARCH']); + } + // If we are looking for authors get their ids $author_id_ary = array(); $sql_author_match = ''; |