projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ce4a66
)
slightly better error handling than before?, RT#10574
author
ivan
<ivan>
Mon, 31 Jan 2011 05:50:31 +0000
(
05:50
+0000)
committer
ivan
<ivan>
Mon, 31 Jan 2011 05:50:31 +0000
(
05:50
+0000)
FS/FS/svc_port.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_port.pm
b/FS/FS/svc_port.pm
index
befe8ca
..
db1f539
100644
(file)
--- a/
FS/FS/svc_port.pm
+++ b/
FS/FS/svc_port.pm
@@
-273,6
+273,12
@@
sub graph_png {
'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;