Bug 5917 : Fixing a bug with signedin users

This commit is contained in:
Chris Cormack 2011-03-31 08:59:27 +13:00
parent 6840c9ca44
commit 6350a7d1cb

View file

@ -465,7 +465,7 @@ sub get_template_and_user {
SyndeticsCoverImageSize => C4::Context->preference("SyndeticsCoverImageSize"),
);
$template->param(OpacPublic => '1') if ($template->param( 'loggedinusername') || C4::Context->preference("OpacPublic"));
$template->param(OpacPublic => '1') if ($user || C4::Context->preference("OpacPublic"));
}
$template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]);
return ( $template, $borrowernumber, $cookie, $flags);