From 66120625eb3e3f656c7b55e4bbd7e4303b5ae4cf Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 26 Sep 2014 01:43:38 +0800 Subject: Bug 1072110: _concatenate_js assumes javascript_urls is an array --- Bugzilla/Template.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 6d6aee750..6a46701ff 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -528,7 +528,8 @@ sub _css_url_rewrite { sub _concatenate_js { return @_ unless CONCATENATE_ASSETS; my ($sources) = @_; - return [] unless $sources && ref($sources); + return [] unless $sources; + $sources = ref($sources) ? $sources : [ $sources ]; my %files = map { -- cgit v1.2.3-24-g4f1b