From 42c8356688bc0e47b2fe95debbbf51f632757eca Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 26 Mar 2014 08:20:21 +0200 Subject: [PATCH] Fix undef warning --- lib/Gruntmaster/Page/Generic.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index 99f75b0..317fc6a 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -169,7 +169,7 @@ thing { $_->{problem_name} = $_->{rs}->problem->name; $_->{size} = length $_->{source}; delete $_->{source}; - $_->{pageprefix} = $env->{'gruntmaster.page'} == -1 ? 'page/' : ''; + $_->{pageprefix} = $env->{'gruntmaster.page'} && $env->{'gruntmaster.page'} == -1 ? 'page/' : ''; } }; -- 2.39.2