diff options
author | ivan <ivan> | 2008-03-16 07:21:26 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-03-16 07:21:26 +0000 |
commit | 063b112dd3d5340ec98f6fa960145e47639d5ffb (patch) | |
tree | 84849989d39750fb383bfc25ae35ccc0a574c92a /FS | |
parent | b1e6943c4350a941d1970ce7bc01d111adc11532 (diff) |
fix 1.7->1.9 bootstrapping, i think
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/UID.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index 613ff44e7..2307c9e11 100644 --- a/FS/FS/UID.pm +++ b/FS/FS/UID.pm @@ -114,9 +114,11 @@ sub forksuidsetup { warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG; - my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf") or die $dbh->errstr; - $sth->execute or die $sth->errstr; - my $confcount = $sth->fetchrow_arrayref->[0]; + my $confcount = 0; + + my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf") or warn $dbh->errstr; + $sth and $sth->execute or warn $sth->errstr; + $sth and $confcount = $sth->fetchrow_arrayref->[0]; if ($confcount) { $use_confcompat = 0; |