[freeside-commits] freeside/FS/FS UID.pm,1.37,1.38

Ivan,,, ivan at wavetail.420.am
Sun Mar 16 00:21:29 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21659

Modified Files:
	UID.pm 
Log Message:
fix 1.7->1.9 bootstrapping, i think

Index: UID.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UID.pm,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- UID.pm	4 Mar 2008 01:49:49 -0000	1.37
+++ UID.pm	16 Mar 2008 07:21:26 -0000	1.38
@@ -114,9 +114,11 @@
 
   warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG;
 
-  my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf") or die $dbh->errstr;
-  $sth->execute or die $sth->errstr;
-  my $confcount = $sth->fetchrow_arrayref->[0];
+  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];
 
   if ($confcount) {
     $use_confcompat = 0;



More information about the freeside-commits mailing list