diff --git a/search.php b/search.php index 2ac109bf..0eb356cd 100644 --- a/search.php +++ b/search.php @@ -879,9 +879,10 @@ function fetch_search_ids ($sql, $search_type = SEARCH_TYPE_POST) } // Save results in DB + $search_id = make_rand_str(SEARCH_ID_LENGTH); + if ($items_count > $per_page) { - $search_id = make_rand_str(SEARCH_ID_LENGTH); $search_array = join(',', $items_found); $save_in_db = array(