aboutsummaryrefslogtreecommitdiff
path: root/error.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'error.cgi')
-rwxr-xr-xerror.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/error.cgi b/error.cgi
index 92bc9e1..bd552f8 100755
--- a/error.cgi
+++ b/error.cgi
@@ -64,9 +64,11 @@ end
$d.out
known = false
-$conf.known_errors.each{|err|
- known = true if errorstr.index(err)
-}
+if (errorstr)
+ $conf.known_errors.each{|err|
+ known = true if errorstr.index(err)
+ }
+end
if $conf.auto_send_report && !known
tmpfile = "/tmp/error.#{rand(10000)}"