From c725b6c20ae8157a3a13674755b2de5148a1fe26 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 29 May 2014 21:21:59 +0000 Subject: Bug 950491 - When viewing a dependency graph, an "uninitialized value" warning is thrown - Fixes BMO errors from whine.pl: Use of uninitialized value $lang in hash element at Bugzilla/Util.pm line 753. Use of uninitialized value $lang in hash element at Bugzilla/Util.pm line 766. --- Bugzilla/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Util.pm') diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 56685d109..225edbe4a 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -749,7 +749,7 @@ sub template_var { my $name = shift; my $request_cache = Bugzilla->request_cache; my $cache = $request_cache->{util_template_var} ||= {}; - my $lang = $request_cache->{template_current_lang}->[0]; + my $lang = $request_cache->{template_current_lang}->[0] || ''; return $cache->{$lang}->{$name} if defined $cache->{$lang}; my $template = Bugzilla->template_inner($lang); -- cgit v1.2.3-24-g4f1b