1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

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
This commit is contained in:
Ruslan Uzdenov
2009-08-17 13:25:04 +00:00
parent 300f6868af
commit b4297abf2a
3 changed files with 9 additions and 0 deletions

View File

@@ -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 = '';