X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-search.pl;h=617d67ee1bd8037f498546752388382ab066019c;hb=7baf02c263a627b1454577b3141a0af4b8f963d1;hp=00cd8e3fb9cc18e8198235cdba4aa72b15026001;hpb=d07df7d51250bb5a40bb556aab48afb18a67a396;p=koha_fer diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 00cd8e3fb9..617d67ee1b 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -614,7 +614,6 @@ for (my $i=0;$i<@servers;$i++) { } # Opac search history - my $newsearchcookie; if (C4::Context->preference('EnableOpacSearchHistory')) { my @recentSearches = ParseSearchHistorySession($cgi); @@ -638,11 +637,10 @@ for (my $i=0;$i<@servers;$i++) { } shift @recentSearches if (@recentSearches > 15); - # Pushing the cookie back SetSearchHistorySession($cgi, \@recentSearches); } else { - # To the session (the user is logged in) + # To the database (the user is logged in) if (!$offset) { AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc_history, $query_cgi_history, $total); $template->param(ShowOpacRecentSearchLink => 1);