mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix bad use of echo in PHP output
This commit is contained in:
@@ -47,7 +47,8 @@ function fail($sError, $sUserError = false)
|
|||||||
{
|
{
|
||||||
if (!$sUserError) $sUserError = $sError;
|
if (!$sUserError) $sUserError = $sError;
|
||||||
error_log('ERROR: '.$sError);
|
error_log('ERROR: '.$sError);
|
||||||
var_dump($sUserError)."\n";
|
var_dump($sUserError);
|
||||||
|
echo "\n";
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,4 +8,4 @@
|
|||||||
$error['details'] = $exception->getFile() . '('. $exception->getLine() . ')';
|
$error['details'] = $exception->getFile() . '('. $exception->getLine() . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo javascript_renderData(array('error' => $error));
|
javascript_renderData(array('error' => $error));
|
||||||
|
|||||||
Reference in New Issue
Block a user