X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUID.pm;h=a94e90f8619f4a8677ed8cf4ba0d3289bfd43fa2;hb=53aceae6c3023e7971ef80d55e62c47bf09a2092;hp=bd2b70da27b731743d1b3985925255f13d845d02;hpb=42ee3cf005e9a89ff260d4c825436d8870bae4a2;p=freeside.git diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index bd2b70da2..a94e90f86 100644 --- a/FS/FS/UID.pm +++ b/FS/FS/UID.pm @@ -114,10 +114,13 @@ sub forksuidsetup { warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG; - if ( dbdef->table('conf') ) { + my $sth = ''; + if ( dbdef->table('conf') + and $sth = $dbh->prepare("SELECT COUNT(*) FROM conf") + and $sth->execute + ) + { - 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) {