@@ -, +, @@ being added to group --- Koha/Patron.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -793,7 +793,9 @@ sub libraries_where_can_see_patrons { } } - return sort(uniq(@restricted_branchcodes)); + @restricted_branchcodes = grep { defined $_ } @restricted_branchcodes; + @restricted_branchcodes = uniq(@restricted_branchcodes); + return sort (@restricted_branchcodes); } sub can { --