diff options
author | ivan <ivan> | 2008-03-16 07:24:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-03-16 07:24:25 +0000 |
commit | d52a70ebe76e47d9e1a3036452ff967b7e69303e (patch) | |
tree | a94b1ad55b556ce97b3bc0b65c2cfa0b58ff144a | |
parent | 063b112dd3d5340ec98f6fa960145e47639d5ffb (diff) |
okay, how about this
-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 2307c9e11..159649a59 100644 --- a/FS/FS/UID.pm +++ b/FS/FS/UID.pm @@ -116,9 +116,11 @@ sub forksuidsetup { 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]; + my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf"); + if ( $sth ) { + $sth->execute or die $sth->errstr; + $confcount = $sth->fetchrow_arrayref->[0]; + } if ($confcount) { $use_confcompat = 0; |