]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
removed warnings about calling standard templates
[maypole.git] / lib / Maypole.pm
index 88110eabb487ea6d4e1e47693a5787b519a3bdcd..f7699c3c259adc050d701d1a20d7a30be154aa46 100644 (file)
@@ -1,6 +1,5 @@
 package Maypole;
 use base qw(Class::Accessor::Fast Class::Data::Inheritable);
-use attributes ();
 use UNIVERSAL::require;
 use strict;
 use warnings;
@@ -135,7 +134,8 @@ sub is_applicable {
       . "Available tables are: "
       . join( ",", @{ $config->{display_tables} } )
       if $self->debug
-      and not $config->ok_tables->{ $self->{table} };
+      and not $config->ok_tables->{ $self->{table} }
+      and $self->{action};
     return DECLINED() unless exists $config->ok_tables->{ $self->{table} };
 
     # Is it public?