[freeside-commits] freeside/FS/FS Record.pm,1.205,1.206
Ivan,,,
ivan at wavetail.420.am
Wed Aug 4 11:50:11 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22886
Modified Files:
Record.pm
Log Message:
fix scalar_sql not to return empty string for zero
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -w -d -r1.205 -r1.206
--- Record.pm 16 Jul 2010 23:45:23 -0000 1.205
+++ Record.pm 4 Aug 2010 18:50:08 -0000 1.206
@@ -2817,7 +2817,8 @@
my $sth = dbh->prepare($sql) or die dbh->errstr;
$sth->execute
or die "Unexpected error executing statement $sql: ". $sth->errstr;
- $sth->fetchrow_arrayref->[0] || '';
+ my $scalar = $sth->fetchrow_arrayref->[0];
+ defined($scalar) ? $scalar : '';
}
=back
More information about the freeside-commits
mailing list