summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);