[freeside-commits] freeside/FS/FS UID.pm,1.39,1.40

Ivan,,, ivan at wavetail.420.am
Sun Mar 16 00:25:54 PDT 2008


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

Modified Files:
	UID.pm 
Log Message:
okay, really now, how about this

Index: UID.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UID.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- UID.pm	16 Mar 2008 07:24:25 -0000	1.39
+++ UID.pm	16 Mar 2008 07:25:52 -0000	1.40
@@ -118,8 +118,9 @@
 
   my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf");
   if ( $sth ) {
-    $sth->execute or die $sth->errstr;
-    $confcount = $sth->fetchrow_arrayref->[0];
+    if ( $sth->execute ) {
+      $confcount = $sth->fetchrow_arrayref->[0];
+    }
   }
 
   if ($confcount) {



More information about the freeside-commits mailing list