From a6d6be895818d8b4296210b51a2d50c89af2be0c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 8 May 2010 18:57:41 -0400 Subject: [PATCH] quell 'non-initialized variable defaulttab' warning Signed-off-by: Galen Charlton --- opac/opac-detail.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 2cb53043f4..629ebd28dd 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -596,7 +596,7 @@ if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ # We try to select the best default tab to show, according to what # the user wants, and what's available for display -my $defaulttab; +my $defaulttab = ''; switch (C4::Context->preference('opacSerialDefaultTab')) { # If the user wants subscriptions by default @@ -636,5 +636,4 @@ switch (C4::Context->preference('opacSerialDefaultTab')) { $template->param('defaulttab' => $defaulttab); - output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5