From 194bfc3649ff7e172fe39afa8327ab8299ecbc97 Mon Sep 17 00:00:00 2001 From: "Alex \"AdUser\" Z" Date: Tue, 28 Oct 2014 16:30:41 +1000 Subject: [PATCH] * fix use of undef value --- templates/layouts/default.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index f1baf41..eb01318 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -6,10 +6,10 @@ <%= title %> - Linux во Владивостоке % my @styles = qw(default); -% push @styles, split(/\s+/, stash('styles')); +% push @styles, split(/\s+/, stash('styles') || ''); % % my @scripts = (); -% push @scripts, split(/\s+/, stash('scripts')); +% push @scripts, split(/\s+/, stash('scripts') || ''); % % foreach my $style (@styles) { <%= stylesheet "/css/$style.css" %>