auge8472 / My-Little-Forum-1

My Little Forum 1 is a thread based forum with additional board and nested views
GNU General Public License v2.0
6 stars 2 forks source link

Fix: render the result list only in the case of an existing resultset #55

Closed auge8472 closed 4 years ago

auge8472 commented 4 years ago

Before this PR the script created always the structure for the searchresult-list, even there was no results in the resultset. This happens since the introduction of the first templates in the rework of the theme (see also #49).

auge8472 commented 4 years ago

Add an enhancement for the request of the namely number of resultsets. There is no need for a similar request like the search request itself only to count the number of resultsets when it is possible to count the lines in the resultset with a simple function call.