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:
@@ -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 = '';
|
||||
|
Reference in New Issue
Block a user