summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-05-04 17:18:02 +0200
committerUrban Müller2023-05-04 17:18:02 +0200
commit76d976bd078e9985855aa8649e121a298bf154f8 (patch)
tree195ad47632f3fd2ede5457497e832bf77061af95
parentc6c7581505fa31fc6ddb97a0839b9020411b46e0 (diff)
downloaditools-76d976bd078e9985855aa8649e121a298bf154f8.tar.gz
itools-76d976bd078e9985855aa8649e121a298bf154f8.tar.bz2
itools-76d976bd078e9985855aa8649e121a298bf154f8.zip
adapt to standard syntax
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 935ec98..debbe96 100644
--- a/it.class
+++ b/it.class
@@ -294,7 +294,7 @@ static function error($p = array(), $extra = null)
$reqbody = it::file_get_contents("php://input");
$body .= ($trace and $t = it::exec('grep -h {0} `ls {1}/log/alertlog-*|tail -3` /dev/null 2>/dev/null | grep ^2 | cut -d : -f 1-2 | sort | uniq -c | tail -10', $trace, $home)) ? "Histogram: (last 10 affected minutes in 3 days)\n$t\n" : "";
- $body .= $mediumstack ? "Stack:\n " . it::replace("\n" => "\n ", $mediumstack) . "\n" : "";
+ $body .= $mediumstack ? "Stack:\n " . it::replace(["\n" => "\n "], $mediumstack) . "\n" : "";
$body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : "";
$body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : "";
$body .= $reqbody ? "\$reqbody: " . var_export($reqbody, true) . "\n\n" : "";