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

r/a=sgreen


git-svn-id: svn://10.0.0.236/trunk@265149 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org 2013-12-19 17:45:41 +00:00
parent 01efd2530d
commit fd8b5cfb03
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8834
8835

View File

@ -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);