[freeside-commits] freeside/FS/FS svc_port.pm,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Sun Jan 30 21:50:33 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv27732
Modified Files:
svc_port.pm
Log Message:
slightly better error handling than before?, RT#10574
Index: svc_port.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_port.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- svc_port.pm 31 Jan 2011 02:00:17 -0000 1.6
+++ svc_port.pm 31 Jan 2011 05:50:31 -0000 1.7
@@ -273,6 +273,12 @@
'order_by' => "order by $_date asc",
});
+ if ( ! scalar(@records) ) {
+ warn "$me no records returned for $serviceid\n";
+ return ''; #should actually return a blank png (or, even better, the
+ # error message in the image)
+ }
+
warn "$me ". scalar(@records). " records returned for $serviceid\n"
if $DEBUG;
More information about the freeside-commits
mailing list