summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/UID.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm
index 159649a59..356efa49c 100644
--- a/FS/FS/UID.pm
+++ b/FS/FS/UID.pm
@@ -118,8 +118,9 @@ sub forksuidsetup {
my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf");
if ( $sth ) {
- $sth->execute or die $sth->errstr;
- $confcount = $sth->fetchrow_arrayref->[0];
+ if ( $sth->execute ) {
+ $confcount = $sth->fetchrow_arrayref->[0];
+ }
}
if ($confcount) {