Bug 19991: Remove warning from opac-user
Use of uninitialized value in split at /home/vagrant/kohaclone/opac/opac-user.pl line 78. Use of uninitialized value $search_query in string ne at /home/vagrant/kohaclone/opac/opac-user.pl line 367. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
59d436ee60
commit
38428fd71e
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
my %renewed = map { $_ => 1 } split( ':', $query->param('renewed') );
|
||||
my %renewed = map { $_ => 1 } split( ':', $query->param('renewed') || '' );
|
||||
|
||||
my $show_priority;
|
||||
for ( C4::Context->preference("OPACShowHoldQueueDetails") ) {
|
||||
|
@ -364,7 +364,7 @@ $template->param(
|
|||
# back to the opac-results page
|
||||
my $search_query = $query->param('has-search-query');
|
||||
|
||||
if ($search_query ne '') {
|
||||
if ($search_query) {
|
||||
|
||||
print $query->redirect(
|
||||
-uri => "/cgi-bin/koha/opac-search.pl?$search_query",
|
||||
|
|
Loading…
Reference in a new issue