Make Gruntmaster::Page::Base::variants not need overriding
[gruntmaster-page.git] / lib / Gruntmaster / Page / Base.pm
index 6ced6145a68eff7367d87293f4963258fa861985..475be80d6952521e4d0fc96c6c82881913b64764 100644 (file)
@@ -92,6 +92,7 @@ sub vary { '' }
 sub max_age { 60 }
 
 sub variants {
+       return [] unless exists $templates{$_[0]};
        [ map { [ $_, 1, 'text/html', undef, undef, $_, undef ]} keys $templates{$_[0]} ]
 }
 
This page took 0.009463 seconds and 4 git commands to generate.