[freeside-commits] freeside/FS/FS UID.pm,1.38,1.39
Ivan,,,
ivan at wavetail.420.am
Sun Mar 16 00:24:27 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21741
Modified Files:
UID.pm
Log Message:
okay, how about this
Index: UID.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UID.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- UID.pm 16 Mar 2008 07:21:26 -0000 1.38
+++ UID.pm 16 Mar 2008 07:24:25 -0000 1.39
@@ -116,9 +116,11 @@
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];
+ my $sth = $dbh->prepare("SELECT COUNT(*) FROM conf");
+ if ( $sth ) {
+ $sth->execute or die $sth->errstr;
+ $confcount = $sth->fetchrow_arrayref->[0];
+ }
if ($confcount) {
$use_confcompat = 0;
More information about the freeside-commits
mailing list