Bug 7298: (follow-up) fix uninitialized variable warning
[koha.git] / catalogue / imageviewer.pl
index a5f86a5..c96e5af 100755 (executable)
@@ -78,4 +78,7 @@ $template->{VARS}->{'norequests'}   = $norequests;
 $template->param(C4::Search::enabled_staff_search_views);
 $template->{VARS}->{'biblio'} = $biblio;
 
+my ( $holdcount, $holds ) = C4::Reserves::GetReservesFromBiblionumber($biblionumber,1);
+$template->param( holdcount => $holdcount, holds => $holds );
+
 output_html_with_http_headers $query, $cookie, $template->output;