mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix issue in DetailedErrorFormatter
This commit is contained in:
parent
738f50c497
commit
7ed4660e7a
@ -24,7 +24,7 @@ class DetailedErrorFormatter implements FormatterInterface
|
|||||||
'trace' => $exception->getTrace(),
|
'trace' => $exception->getTrace(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$context = $record['context'];
|
$context = isset($record['context']) ? $record['context'] : $record;
|
||||||
foreach (array('code','message','file','line') as $key) {
|
foreach (array('code','message','file','line') as $key) {
|
||||||
if (!isset($context[$key])) {
|
if (!isset($context[$key])) {
|
||||||
$context[$key] = isset($record[$key]) ? $record[$key] : null;
|
$context[$key] = isset($record[$key]) ? $record[$key] : null;
|
||||||
|
Loading…
Reference in New Issue
Block a user