diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-28 23:12:31 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-28 23:12:31 +0000 |
commit | 0c95dffd8a45ed4bb6a6238cf22a1e434db3093f (patch) | |
tree | ce658032b03b4e2e4fef54315e53c49fe69d5889 /phpBB | |
parent | 2b3b8b7198ed327f26c3e76da795710224d8c2ec (diff) | |
download | forums-0c95dffd8a45ed4bb6a6238cf22a1e434db3093f.tar forums-0c95dffd8a45ed4bb6a6238cf22a1e434db3093f.tar.gz forums-0c95dffd8a45ed4bb6a6238cf22a1e434db3093f.tar.bz2 forums-0c95dffd8a45ed4bb6a6238cf22a1e434db3093f.tar.xz forums-0c95dffd8a45ed4bb6a6238cf22a1e434db3093f.zip |
Fixed pagination bug on search results ( #509852 )
git-svn-id: file:///svn/phpbb/trunk@2010 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/search.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 1d223bdced..9b3517503f 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -521,11 +521,7 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) // Finish building query (for all combinations) // and run it ... // - if( !$total_match_count ) - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } - else if( $total_match_count ) + if( $total_match_count ) { // // Clean up search results table @@ -633,6 +629,10 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) header("Location: " . append_sid("search.$phpEx", true)); } } + else + { + message_die(GENERAL_MESSAGE, $lang['No_search_match']); + } if( $search_results != "" ) { |