diff options
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 = ''; |
