Fixed warning on uninitialized value.
Marc Mims [Fri, 5 Oct 2007 18:49:20 +0000 (11:49 -0700)]
lib/DBIx/Class/Storage/DBI.pm

index f656c08..874d3a4 100644 (file)
@@ -718,7 +718,7 @@ sub connected {
 sub _verify_pid {
   my ($self) = @_;
 
-  return if $self->_conn_pid == $$;
+  return if defined $self->_conn_pid && $self->_conn_pid == $$;
 
   $self->_dbh->{InactiveDestroy} = 1;
   $self->_dbh(undef);