From c67e290061fc3ed7214b6f73b88730f1c87d7c10 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 16 Aug 2017 15:10:14 +0200 Subject: only show filter params if actually in use --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 7d69d6c..50d171c 100644 --- a/it.class +++ b/it.class @@ -249,7 +249,7 @@ static function error($p = array()) $stackframes[] = $stackframe; $body .= "Host: " . getenv('HOSTNAME') . "\n\n"; - $body .= $p['timewindow'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . "\n\n" : ""; + $body .= $p['id'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . "\n\n" : ""; $body .= "Time: " . date("Y-m-d H:i:s") . "\n\n"; # no it::date() because of time- debug param $body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : ""; $body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : ""; -- cgit v1.2.3