summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-06-15 02:37:02 +0200
committerterry%mozilla.org <>1999-06-15 02:37:02 +0200
commit991e9d13f2bf7f7dafde5fc602b1612a3f88943c (patch)
treee401e4eb3ab02396dd15b91b39c9efa16e8fc649 /buglist.cgi
parentc9470b0400e94e5629f24592b8e438e8eca5851c (diff)
downloadbugzilla-991e9d13f2bf7f7dafde5fc602b1612a3f88943c.tar.gz
bugzilla-991e9d13f2bf7f7dafde5fc602b1612a3f88943c.tar.xz
A null quip file was causing errors.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index dbc056e29..19fc96940 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -619,7 +619,8 @@ if (open (COMMENTS, "<data/comments")) {
}
close COMMENTS;
$quip = $cdata[int(rand($#cdata + 1))];
-} else {
+}
+if (!defined $quip) {
$quip = "Bugzilla would like to put a random quip here, but nobody has entered any.";
}