diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt
index dcf3ca549f..b6057a6c54 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt
@@ -39,7 +39,7 @@
[% FOREACH l IN lists %]
- [% SET shared_by_other = l.owner.id != logged_in_user %]
+ [% SET shared_by_other = l.owner.id != logged_in_user.id %]
| [% l.name |html%] |
[% l.patron_list_patrons_rs.count || 0 %] |
diff --git a/patron_lists/lists.pl b/patron_lists/lists.pl
index 8b2a97fa98..a5cdf2b74c 100755
--- a/patron_lists/lists.pl
+++ b/patron_lists/lists.pl
@@ -39,9 +39,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
my @lists = GetPatronLists();
-$template->param(
- lists => \@lists,
- logged_in_user => $loggedinuser,
-);
+$template->param( lists => \@lists );
output_html_with_http_headers( $cgi, $cookie, $template->output );