]> iEval git - gruntmaster-page.git/commitdiff
Fix undef warning
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Mar 2014 06:20:21 +0000 (08:20 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Mar 2014 06:20:21 +0000 (08:20 +0200)
lib/Gruntmaster/Page/Generic.pm

index 99f75b0e2a59e51fa5322a6a4173c91b20b8c6c3..317fc6a6a2e35d3599d30e8ed5a2fbc844b299b8 100644 (file)
@@ -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/' : '';
        }
 };
 
This page took 0.02171 seconds and 4 git commands to generate.