Bug 31420: Managing funds: Labels of statistic fields overlap with pull downs
[koha-ffzg.git] / opac / opac-library.pl
index 21e4142..fda1956 100755 (executable)
@@ -40,7 +40,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
 my $found;
 if ($branchcode) {
     my $library = Koha::Libraries->find($branchcode);
-    if ( $library->public ) {
+    if ( $library && $library->public ) {
         $found++;
         $template->param( library => $library );
     }