[Koha-patches] [PATCH 2/4] quell 'non-initialized variable defaulttab' warning

Galen Charlton gmcharlt at gmail.com
Sun May 9 01:01:37 CEST 2010


Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 opac/opac-detail.pl |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 2cb5304..629ebd2 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;
-- 
1.7.0




More information about the Koha-patches mailing list