From: ivan Date: Wed, 9 Apr 2008 21:27:14 +0000 (+0000) Subject: please mr. bootstrapping tree, give us some bootsap X-Git-Tag: root_of_webpay_support~728 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0ea259968caa20ba0833f07cfc26adc85dff2800 please mr. bootstrapping tree, give us some bootsap --- diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index a94e90f86..dd4850fb2 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) {