Fixing warning if app isn't running in debug
J. Shirley [Fri, 26 Jun 2009 14:56:46 +0000 (14:56 +0000)]
lib/Catalyst/Authentication/Credential/HTTP.pm

index fa7c935..b2234b5 100644 (file)
@@ -27,7 +27,7 @@ sub new {
     
     $config->{username_field} ||= 'username';
     # _config is shity back-compat with our base class.
-    my $self = { %$config, _config => $config, _debug => $app->debug };
+    my $self = { %$config, _config => $config, _debug => $app->debug ? 1 : 0 };
     bless $self, $class;
     
     $self->realm($realm);