Commit 9e4f7465 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 950491: When viewing a dependency graph, an "uninitialized value" warning is thrown

r/a=sgreen
parent a11f4823
......@@ -750,7 +750,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment