fix bad use of echo in PHP output

This commit is contained in:
Sarah Hoffmann
2021-07-09 12:50:35 +02:00
parent a5970d7548
commit 106d960f84
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ function fail($sError, $sUserError = false)
{
if (!$sUserError) $sUserError = $sError;
error_log('ERROR: '.$sError);
var_dump($sUserError)."\n";
var_dump($sUserError);
echo "\n";
exit(-1);
}

View File

@@ -8,4 +8,4 @@
$error['details'] = $exception->getFile() . '('. $exception->getLine() . ')';
}
echo javascript_renderData(array('error' => $error));
javascript_renderData(array('error' => $error));