[freeside-commits] freeside/FS/FS UID.pm,1.41,1.42

Ivan,,, ivan at wavetail.420.am
Wed Apr 9 14:17:08 PDT 2008


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

Modified Files:
	UID.pm 
Log Message:
1.9 bootstrapping: apparantly, we have a dbdef at this point, but its not in the database yet, so checking dbdef->table doesn't DWWW

Index: UID.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UID.pm,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- UID.pm	16 Mar 2008 08:04:04 -0000	1.41
+++ UID.pm	9 Apr 2008 21:17:05 -0000	1.42
@@ -114,10 +114,13 @@
 
   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) {



More information about the freeside-commits mailing list