@@ -, +, @@ malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 171. - remove the bibs_selected cookie - launch a search - click on a result - the page should be displayed correctly --- opac/opac-detail.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -214,8 +214,7 @@ if ($session->param('busc')) { my $searchAgain = 0; my ( $offset, $results_per_page ); - my $bibnums = $query->cookie('bibs_selected'); - $bibnums = JSON::from_json($bibnums); + my $bibnums = JSON::from_json( $query->cookie('bibs_selected') || '[]' ); if ( scalar( @$bibnums ) ) { $arrParamsBusc{count} = scalar( @$bibnums ); $arrParamsBusc{listBiblios} = join ',', @$bibnums; --