summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@redhat.com>2014-05-29 23:21:59 +0200
committerDavid Lawrence <dkl@redhat.com>2014-05-29 23:21:59 +0200
commitc725b6c20ae8157a3a13674755b2de5148a1fe26 (patch)
treeecd9dbd64fa5bb5da81b546e3bdffcaee1e4e044
parentf71bffcb68de10de3e1dea48e07b7d8f0954020e (diff)
downloadbugzilla-c725b6c20ae8157a3a13674755b2de5148a1fe26.tar.gz
bugzilla-c725b6c20ae8157a3a13674755b2de5148a1fe26.tar.xz
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.
-rw-r--r--Bugzilla/Util.pm2
1 files changed, 1 insertions, 1 deletions
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);