diff options
author | Urban Müller | 2017-08-14 12:07:09 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-14 12:07:09 +0200 |
commit | 8cec6105e76488e64024f5d174704417525e1e0e (patch) | |
tree | 4d3eced423d1777e9203b5705d0fcbeb76394ec9 | |
parent | d3d3da3103aa902764c831eb104569db2c22c9bb (diff) | |
download | itools-8cec6105e76488e64024f5d174704417525e1e0e.tar.gz itools-8cec6105e76488e64024f5d174704417525e1e0e.tar.bz2 itools-8cec6105e76488e64024f5d174704417525e1e0e.zip |
use short syntax to indicate error filter
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ static function error($p = array()) $stackframes[] = $stackframe; $body .= "Host: " . getenv('HOSTNAME') . "\n\n"; - $body .= $p['id'] ? "Filter: graceperiod={$p['graceperiod']} timewindow={$p['timewindow']}\n\n" : ""; + $body .= $p['timewindow'] ? "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" : ""; |