diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 057d9e88d6..e9d7758cb7 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -77,7 +77,8 @@ my $mandatory = GetMandatoryFields($action); my $params = {}; if ( $action eq 'create' || $action eq 'new' ) { my @PatronSelfRegistrationLibraryList = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList'); - $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } }; + $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } } + if @PatronSelfRegistrationLibraryList; } my @libraries = Koha::Libraries->search($params);