remove all traces of Aranea.
[spider.git] / perl / DXSql.pm
index a2194a7b2f7618a06f0ba10a1b1064f69f22e0d5..d0f7856b05193c58251e61cb5bd7fa0084832ba4 100644 (file)
@@ -22,6 +22,8 @@ our $active = 0;
 
 sub init
 {
+       my $dsn = shift;
+       return unless $dsn;
        return $active if $active;
        
        eval { 
@@ -31,6 +33,7 @@ sub init
                import DBI;
                $active++;
        }
+       undef $@;
        return $active;
 }