[ticket/13094] Condition search properly

PHPBB3-13094
Merge pull request #2983 from Senky/ticket/13094

[ticket/13094] Remove the search box if there are no new posts to search for
Merge branch 'develop-ascraeus' into develop