diff options
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi index 7e97861fb..6a80a7115 100755 --- a/reports.cgi +++ b/reports.cgi @@ -334,7 +334,9 @@ FIN push @cdata, $_; } close COMMENTS; - $quip = "<i>" . $cdata[int(rand($#cdata + 1))] . "</i>"; + if(@cdata) { + $quip = "<i>" . $cdata[int(rand(scalar(@cdata)))] . "</i>"; + } } } |