summaryrefslogtreecommitdiff
path: root/FS/FS/UID.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-04-09 21:27:14 +0000
committerivan <ivan>2008-04-09 21:27:14 +0000
commit0ea259968caa20ba0833f07cfc26adc85dff2800 (patch)
tree7e4162e5551c9bd96ee26442b6155ca69f686c3f /FS/FS/UID.pm
parent53aceae6c3023e7971ef80d55e62c47bf09a2092 (diff)
please mr. bootstrapping tree, give us some bootsap
Diffstat (limited to 'FS/FS/UID.pm')
-rw-r--r--FS/FS/UID.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm
index a94e90f..dd4850f 100644
--- a/FS/FS/UID.pm
+++ b/FS/FS/UID.pm
@@ -114,13 +114,10 @@ sub forksuidsetup {
warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG;
- my $sth = '';
- if ( dbdef->table('conf')
- and $sth = $dbh->prepare("SELECT COUNT(*) FROM conf")
- and $sth->execute
- )
- {
+ if ( ! $FS::Schema::setup_hack && dbdef->table('conf') ) {
+ my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf") or die $dbh->errstr;
+ $sth->execute or die $sth->errstr;
my $confcount = $sth->fetchrow_arrayref->[0];
if ($confcount) {