From: Marius Gavrilescu Date: Wed, 26 Mar 2014 06:20:21 +0000 (+0200) Subject: Fix undef warning X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;h=42c8356688bc0e47b2fe95debbbf51f632757eca;p=gruntmaster-page.git Fix undef warning --- 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/' : ''; } };